mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 12:48:32 +00:00
Fix error on tapping block with air in hand
This commit is contained in:
parent
cbf1f7a2e8
commit
08c9321a55
@ -200,8 +200,10 @@ class Human extends Creature implements ProjectileSource, InventorySource{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getCurrentEquipment(){
|
public function getCurrentEquipment(){
|
||||||
|
if($this->slot > -1) {
|
||||||
return $this->hotbar[$this->slot];
|
return $this->hotbar[$this->slot];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function sendCurrentEquipmentSlot(Player $player){
|
public function sendCurrentEquipmentSlot(Player $player){
|
||||||
$pk = new PlayerEquipmentPacket;
|
$pk = new PlayerEquipmentPacket;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user