Plex-FAWE/worldedit-core
eztaK-red 211e8034ff
Fix off by one error for negative coordinates when using -r with //deform (#2092)
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>
2023-03-06 13:53:07 +01:00
..
doctools Port initial paperweight classes to 1.18 folder structure 2021-11-30 12:35:34 +01:00
src Fix off by one error for negative coordinates when using -r with //deform (#2092) 2023-03-06 13:53:07 +01:00
build.gradle.kts Add metrics for Residence (#2081) 2023-02-07 10:47:49 +01:00