Level: fix another crashy edge case in chunk ticking

this also removes a bias towards the chunk that the player is on, because this makes such chunks tick faster than adjacent chunks.
This commit is contained in:
Dylan K. Taylor 2019-01-27 20:41:47 +00:00
parent 9ec40c421f
commit a6237958e8

View File

@ -970,8 +970,6 @@ class Level implements ChunkManager, Metadatable{
$chunkX = (int) floor($loader->getX()) >> 4;
$chunkZ = (int) floor($loader->getZ()) >> 4;
$index = Level::chunkHash($chunkX, $chunkZ);
$chunkTickList[$index] = true;
for($chunk = 0; $chunk < $chunksPerLoader; ++$chunk){
$dx = mt_rand(-$randRange, $randRange);
$dz = mt_rand(-$randRange, $randRange);