mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 04:38:35 +00:00
Resend slot on change
This commit is contained in:
parent
26c2f61da0
commit
8f724ffc46
@ -272,6 +272,7 @@ class Player{
|
|||||||
|
|
||||||
public function setSlot($slot, Item $item){
|
public function setSlot($slot, Item $item){
|
||||||
$this->inventory[(int) $slot] = array($item->getID(), $item->getMetadata(), $item->count);
|
$this->inventory[(int) $slot] = array($item->getID(), $item->getMetadata(), $item->count);
|
||||||
|
$this->sendInventorySlot((int) $slot);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user