Closed codetaylor closed 2 years ago
Integer overflow in distance matcher when too far from spawn.
Discord discussion: https://discord.com/channels/516841320594276353/516847563085840395/940488566264459355
/tp @p 1000000 ~ ~
[DEBUG] [MATCH] [!!] Distance [NaN] inside range [0,2147483647] [DEBUG] [!!] Rule not matched
{ "rules": [ { "debug": true, "match": { "blocks": {"blocks": ["minecraft:dirt"]} }, "drops": [ {"item": {"items": ["minecraft:diamond"]}} ] } ] }
Fixed in 1.12.2-1.19.2
1.12.2-1.19.2
Issue Description
Integer overflow in distance matcher when too far from spawn.
Discord discussion: https://discord.com/channels/516841320594276353/516847563085840395/940488566264459355
What Happens
/tp @p 1000000 ~ ~
.Script