mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
snowballs and eggs are removed from the used slot instead of inv
This commit is contained in:
parent
19a4008543
commit
dd50ffa7af
1 changed files with 5 additions and 1 deletions
|
|
@ -2021,7 +2021,11 @@ class Player{
|
||||||
}
|
}
|
||||||
|
|
||||||
if(($this->gamemode & 0x01) == 0x0) {
|
if(($this->gamemode & 0x01) == 0x0) {
|
||||||
$this->removeItem($slotItem->getID(), $slotItem->meta, 1);
|
if($slotItem !== false){
|
||||||
|
if($slotItem->count == 1) $this->inventory[$this->slot] = BlockAPI::getItem(AIR, 0, 0);
|
||||||
|
else $slotItem->count -= 1;
|
||||||
|
//$this->sendInventory();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->server->api->entity->spawnToAll($e);
|
$this->server->api->entity->spawnToAll($e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue