Open dadodasyra opened 1 week ago
It seems that in some way the plugin tried to waterlog something equals to Y 320
I managed to reproduce it just by placing water on Y 319. I've temporarily set a workaround to avoid a crash with this:
private static function getBlockLayer(World $world, Vector3 $pos): PalettedBlockArray
{
$subChunkY = $pos->getY() >> 4;
if($subChunkY < Chunk::MIN_SUBCHUNK_INDEX || $subChunkY > Chunk::MAX_SUBCHUNK_INDEX) { //This caused a crash with subchunk 20
return new PalettedBlockArray(0);
}
$subChunk = $world->getChunk($pos->getX() >> 4, $pos->getZ() >> 4)?->getSubChunk($subChunkY);
However, i dont understand and I didnt dived into the code to understand it so I'm pretty sure this is not the way it should be fixed
Sun_Nov_17-12.35.30-CET_2024.log Idk how to reproduce it correctly, but it happens and some of my players are exploiting it