gibbsly / gm

A utility datapack for doing math operations
The Unlicense
31 stars 2 forks source link

Remove unnecessary macro #3

Closed GlitchlessCode closed 6 months ago

GlitchlessCode commented 6 months ago

The Problem

Running the following function:

gm:square {x: <value>}

results in the following error: Failed to instantiate function gm:square: Missing argument y to function gm:square

Solution description

Removing the macro $(y) and replacing it with the hard-coded value 0 fixes the issue