Rough OffHand implementation

this doesn't do stuff like taking arrows from offhand yet.
This commit is contained in:
Dylan K. Taylor
2021-05-05 14:46:51 +01:00
parent e8cb49f7ae
commit 652de2632a
9 changed files with 101 additions and 11 deletions

View File

@ -2103,6 +2103,9 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
if($this->armorInventory !== null){
$this->armorInventory->clearAll();
}
if($this->offHandInventory !== null){
$this->offHandInventory->clearAll();
}
}
$this->getWorld()->dropExperience($this->location, $ev->getXpDropAmount());