Fix error on tapping block with air in hand

This commit is contained in:
williamtdr 2014-04-03 16:40:16 -05:00
parent cbf1f7a2e8
commit 08c9321a55

View File

@ -200,8 +200,10 @@ class Human extends Creature implements ProjectileSource, InventorySource{
}
public function getCurrentEquipment(){
if($this->slot > -1) {
return $this->hotbar[$this->slot];
}
}
public function sendCurrentEquipmentSlot(Player $player){
$pk = new PlayerEquipmentPacket;