mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +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);
|
$this->dropItem($target, $item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$tile->close();
|
$tile->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,8 +152,7 @@ abstract class BaseChunk extends BaseFullChunk implements Chunk{
|
|||||||
}catch(\Exception $e){
|
}catch(\Exception $e){
|
||||||
$level = $this->getProvider();
|
$level = $this->getProvider();
|
||||||
$this->setInternalSection($Y = $y >> 4, $level::createChunkSection($Y));
|
$this->setInternalSection($Y = $y >> 4, $level::createChunkSection($Y));
|
||||||
|
return $this->sections[$y >> 4]->setBlock($x, $y & 0x0f, $z, $blockId & 0xff, $meta & 0x0f);
|
||||||
return $this->setBlock($x, $y, $z, $blockId, $meta);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user