Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Oct 26, 2023
1 parent ae43e62 commit 7a8f354
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/world/World.php
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,7 @@ public function createBlockUpdatePackets(TypeConverter $typeConverter, array $bl
$fullBlock = $this->getBlockAt($b->x, $b->y, $b->z);
$blockPosition = BlockPosition::fromVector3($b);

$tile = $this->getTileAt($b->x, $b->y, $b->z);
if($tile instanceof Spawnable){
$expectedClass = $fullBlock->getIdInfo()->getTileClass();
if($expectedClass !== null && $tile instanceof $expectedClass && count($fakeStateProperties = $tile->getRenderUpdateBugWorkaroundStateProperties($fullBlock)) > 0){
Expand Down

0 comments on commit 7a8f354

Please sign in to comment.