mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 09:10:00 +00:00
World: fix borked check
This commit is contained in:
parent
87b840ff97
commit
eccfb3bbe2
@ -951,7 +951,7 @@ class World implements ChunkManager{
|
|||||||
$blockPosition = BlockPosition::fromVector3($b);
|
$blockPosition = BlockPosition::fromVector3($b);
|
||||||
|
|
||||||
$tile = $this->getTileAt($b->x, $b->y, $b->z);
|
$tile = $this->getTileAt($b->x, $b->y, $b->z);
|
||||||
if($tile instanceof Spawnable && ($fakeStateProperties = $tile->getRenderUpdateBugWorkaroundStateProperties($fullBlock)) !== null){
|
if($tile instanceof Spawnable && count($fakeStateProperties = $tile->getRenderUpdateBugWorkaroundStateProperties($fullBlock)) > 0){
|
||||||
$originalStateData = $blockMapping->toStateData($fullBlock->getStateId());
|
$originalStateData = $blockMapping->toStateData($fullBlock->getStateId());
|
||||||
$fakeStateData = new BlockStateData(
|
$fakeStateData = new BlockStateData(
|
||||||
$originalStateData->getName(),
|
$originalStateData->getName(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user