Skip to content

Commit

Permalink
Add else case
Browse files Browse the repository at this point in the history
  • Loading branch information
ipad54 committed Sep 2, 2024
1 parent 7f29bd7 commit a2ea5ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/block/ChiseledBookshelf.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public function readStateFromWorld() : Block{
$tile = $this->position->getWorld()->getTile($this->position);
if($tile instanceof TileChiseledBookshelf){
$this->lastInteractedSlot = $tile->getLastInteractedSlot();
}else{
$this->lastInteractedSlot = null;
}
return $this;
}
Expand Down

0 comments on commit a2ea5ce

Please sign in to comment.