Platforms
Windows
Build
158.1
Issue
if the coordinate is not an integer type(eg. sensor the @x of unit), at some situation the getBlock, setBlock and unitControl-build would respond differently. Although you could add op round x x b to resolve this problem, but I believe that it would be better to use the same coordinate system.
To be more specific, for the setBlock logic
Tile tile = world.tile(x.numi(), y.numi());
but for the getBlock logic
world.tile(Mathf.round(x.numf()), Mathf.round(y.numf()))
and unitControl build is more complicated and is differ from the others.
Steps to reproduce
The following is an example of how this problem works
set x 62.6
set y 334.6
setblock block @router x y @derelict 0
getblock block result x y
Mods used
No response
Save file
No response
(Crash) logs
No response
Submission
Platforms
Windows
Build
158.1
Issue
if the coordinate is not an integer type(eg. sensor the @x of unit), at some situation the getBlock, setBlock and unitControl-build would respond differently. Although you could add op round x x b to resolve this problem, but I believe that it would be better to use the same coordinate system.
To be more specific, for the setBlock logic
but for the getBlock logic
and unitControl build is more complicated and is differ from the others.
Steps to reproduce
The following is an example of how this problem works
Mods used
No response
Save file
No response
(Crash) logs
No response
Submission