ForgeEssentials

ForgeEssentials

339k Downloads

[1.12]Using portal to the Nether with CubicChunks enabled cause endless cycle, which hangs a server

Foghrye4 opened this issue ยท 1 comments

commented

Since CubicChunks fill th Nether with solid layer of netherrack from 255 up to Integer.MAX_VALUE, this cycle is practically endless:

while (y + h < world.getHeight() && !isFree(world, x, y, z, h))

Situation could be achieved very easy, you just need to use portal at any height > 255, while being in survival mode.
modlist.txt
screenshot from 2019-02-04 21-44-28

.

commented

There is at least two way to fix this issue:

  1. Limit search to 255 blocks and replace block with grave at a height of death if there is no free spot.
  2. Limit search to 255 blocks and don't make a grave at all if there is no free spot.