mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 21:59:52 +00:00
Added debug for mismatched item equipment
tool damage packets sent in the wrong order? This could be bad for performance since the entire inventory is resent every time this issue crops up.
This commit is contained in:
parent
6ba4a8fe5c
commit
284c18d401
@ -2237,6 +2237,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
$item = $this->inventory->getItem($packet->inventorySlot);
|
||||
|
||||
if(!$item->equals($packet->item)){
|
||||
$this->server->getLogger()->debug("Tried to equip " . $packet->item . " but have " . $item . " in target slot");
|
||||
$this->inventory->sendContents($this);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user