mojira.dev
MC-274462

Loss of precision in value_check condition

How to Reproduce

Run the following commands:

/execute if predicate {condition:value_check,value:16777216,range:16777216}

-> ✔ Test passed

/execute if predicate {condition:value_check,value:16777217,range:16777216}

-> ❌ Test passed

/execute if predicate {condition:value_check,value:16777218,range:16777216}

-> ✔ Test failed

Expected Behaviour

The second output should be "Test failed".

Observed Behaviour

The second output is "Test passed".

Comments 0

No comments.

ccJerrycc

(Unassigned)

Confirmed

Platform

Low

Commands, Data Packs

1.21, 1.21.1, 1.21.8 Release Candidate 1

Retrieved