MineColonies

MineColonies

57M Downloads

[BUG] Game freezes when player is to high above colony while display colony border

marchermans opened this issue ยท 0 comments

commented

Description:

The game enters an infinite loop at:
https://github.com/ldtteam/minecolonies/blob/version/1.12/src/main/java/com/minecolonies/coremod/event/DebugRendererChunkBorder.java#L124

When the player is to high above the colony, while having the border shown (for example via placement wand).

Reproduction:

  1. Create any creative flat world (for testing, happens in none creative, as well as none flat worlds as well)
  2. Place any town hall down
  3. Hold the building tool
  4. Fly up
  5. Notice the grid lines getting closer and closer together since there distance depends on the player height
  6. Fly even higher, the lines will eventually turn into millions and create a sollid white wall, grinding the computer to a halt
  7. Fly even higher, eventually the line distance becomes so small that its growth is less then the machine accuracy (known as the double or float epsilon depending on the variable type), putting the system in an infinite loop. Out of which the player can not escape.