Minenash / CustomHUD

A highly customizable variable-based text HUD for Minecraft
MIT License
80 stars 23 forks source link

profile.txt strips leading sign from numbers #46

Closed phistoh closed 2 years ago

phistoh commented 2 years ago

When comparing numeral values (e.g. yaw), the mod strips the leading sign (i.e. the minus sign -) from the (right hand side) comparison.

Consider the following example: {{yaw >= -180, "N", "?"}} Regardless of the actual yaw-value, the mod shows ? instead of N. (In fact, since the smallest yaw-value is -180 the mod should always display N.)

Another example is {{yaw >= -67, "SE", "?"}}. In this case, the mod displays SE if the actual yaw-value is in between 67.0 and 179.9 and ? if the value is between -179.9 and 66.9—though the expected output would be ? from -179.9 to -66.9 and SE from -67.0 onwards.

Minenash commented 2 years ago

Apparently I forgot to add the negative sign for the parsing. Fixed, will be in today's release

Minenash commented 2 years ago

Fixed in v2.1