mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
211e8034ff
The problem: Off by one error for negative coordinates. Source: Behaviour of rounding coordinates (doubles) after deform. The off by error came down to rounding using casts (int) and rounding using Math.floor() (int)( 1.8) = 1 (int)(-1.8) = -1 (int)Math.floor( 1.8) = 1 (int)Math.floor(-1.8) = -2 Looking at the original WorldEdit implementation a Math.floor call is present too. It was missing FAWE which resulted in the bug. Co-authored-by: Alexander Brandes <mc.cache@web.de> |
||
---|---|---|
.. | ||
doctools | ||
src | ||
build.gradle.kts |