mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
removed old sendInventorySlot
This commit is contained in:
parent
e9df7ba658
commit
0a0a86c92b
1 changed files with 0 additions and 16 deletions
|
|
@ -667,22 +667,6 @@ class Player{
|
|||
public function sendInventorySlot($s){
|
||||
$this->sendInventory();
|
||||
return true;
|
||||
$s = (int) $s;
|
||||
if(!isset($this->inventory[$s])){
|
||||
$pk = new ContainerSetSlotPacket;
|
||||
$pk->windowid = 0;
|
||||
$pk->slot = (int) $s;
|
||||
$pk->item = BlockAPI::getItem(AIR, 0, 0);
|
||||
$this->dataPacket($pk);
|
||||
}
|
||||
|
||||
$slot = $this->inventory[$s];
|
||||
$pk = new ContainerSetSlotPacket;
|
||||
$pk->windowid = 0;
|
||||
$pk->slot = (int) $s;
|
||||
$pk->item = $slot;
|
||||
$this->dataPacket($pk);
|
||||
return true;
|
||||
}
|
||||
|
||||
public function sendInventory(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue