Implement Turtle Shell (#5235)

This commit is contained in:
IvanCraft623
2022-09-28 12:19:15 -05:00
committed by GitHub
parent 383dc2a2b9
commit 1366a43c22
7 changed files with 63 additions and 1 deletions

View File

@ -610,6 +610,13 @@ abstract class Living extends Entity{
if($this->doAirSupplyTick($tickDiff)){
$hasUpdate = true;
}
foreach($this->armorInventory->getContents() as $index => $item){
if($item->onTickWorn($this)){
$hasUpdate = true;
$this->armorInventory->setItem($index, $item);
}
}
}
if($this->attackTime > 0){