diff --git a/src/entity/Living.php b/src/entity/Living.php index 29a8ceae8..5aeea98e5 100644 --- a/src/entity/Living.php +++ b/src/entity/Living.php @@ -637,9 +637,12 @@ abstract class Living extends Entity{ } foreach($this->armorInventory->getContents() as $index => $item){ + $oldItem = clone $item; if($item->onTickWorn($this)){ $hasUpdate = true; - $this->armorInventory->setItem($index, $item); + if(!$item->equalsExact($oldItem)){ + $this->armorInventory->setItem($index, $item); + } } } }