mojira.dev

mr_cheese

Assigned

No issues.

Reported

MC-276879 Floats are truncated when cast to longs with /data, all other cases round down Confirmed

Comments

brief code analysis: FloatTag.getAsLong does not call floor in the conversion, as opposed to getAsByte, getAsShort, getAsInt, and DoubleTag.getAsLong which all do. that is the cause of the inconsistent behavior