RenderBlock rendering error on high x coordinates
bibo38 opened this issue ยท 2 comments
How to reproduce
- Load a word
- Teleport to the edge of the world:
/tp @p 29999940
- Point the laser on any breakable block and move slightly.
Expected behaviour
The block pointed at becomes green (because it's mineable)
Actual behaviour
With slight movement the green box around the block (probably the RenderBlock
class) doesn't align correctly or is just at the wrong block:
Still the laser breaks the correct blocks. Only the rendering is affected.
Possible cause
As this effect increases, as the x coordinate (the z coordinate is probably affected the same way) distance goes up, it is probably caused by a floating point error.
P.S.: I've found this while testing the laser in the Dimensional Dungeon mod. Since the Dungeon was located at an x coordinate of around 1'500'000 the box was always on the correct block, but wobbled very violently.
I'll see what I can do but it's low on the priorty list as you're at the world border :P Some mc renders don't handle this well either haha. The code being used on the render is also not optimal at all.