mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Workaround BaseChunk::setBlock() recursion issues
This commit is contained in:
parent
1795c8c5e3
commit
d6a0e284e3
@ -887,7 +887,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$this->dropItem($target, $item);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$tile->close();
|
||||
}
|
||||
|
||||
|
@ -152,8 +152,7 @@ abstract class BaseChunk extends BaseFullChunk implements Chunk{
|
||||
}catch(\Exception $e){
|
||||
$level = $this->getProvider();
|
||||
$this->setInternalSection($Y = $y >> 4, $level::createChunkSection($Y));
|
||||
|
||||
return $this->setBlock($x, $y, $z, $blockId, $meta);
|
||||
return $this->sections[$y >> 4]->setBlock($x, $y & 0x0f, $z, $blockId & 0xff, $meta & 0x0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user