mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
fixed experimental hotbar in creative, fixed eggs removing from inv in creative
This commit is contained in:
parent
40dfb144eb
commit
ae848fa812
1 changed files with 5 additions and 1 deletions
|
|
@ -1873,6 +1873,8 @@ class Player{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(Player::$experimentalHotbar) $this->sendInventory();
|
if(Player::$experimentalHotbar) $this->sendInventory();
|
||||||
|
}else{
|
||||||
|
$this->slot = $packet->slot;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//$this->sendInventorySlot($packet->slot);
|
//$this->sendInventorySlot($packet->slot);
|
||||||
|
|
@ -2003,7 +2005,9 @@ class Player{
|
||||||
$e = $this->server->api->entity->add($this->level, ENTITY_OBJECT, OBJECT_SNOWBALL, $data);
|
$e = $this->server->api->entity->add($this->level, ENTITY_OBJECT, OBJECT_SNOWBALL, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->removeItem($slotItem->getID(), $slotItem->meta, 1);
|
if(($this->gamemode & 0x01) == 0x0) {
|
||||||
|
$this->removeItem($slotItem->getID(), $slotItem->meta, 1);
|
||||||
|
}
|
||||||
|
|
||||||
$this->server->api->entity->spawnToAll($e);
|
$this->server->api->entity->spawnToAll($e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue