mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Basic implementation of Fire
This commit is contained in:
parent
2f6ddb6aa4
commit
2976db25c3
14 changed files with 73 additions and 5 deletions
|
|
@ -210,7 +210,9 @@ class Player{
|
|||
));
|
||||
$inv = array();
|
||||
foreach($this->inventory as $slot => $item){
|
||||
$inv[$slot] = array($item->getID(), $item->getMetadata(), $item->count);
|
||||
if($slot < (($this->gamemode & 0x01) === 0 ? PLAYER_SURVIVAL_SLOTS:PLAYER_CREATIVE_SLOTS)){
|
||||
$inv[$slot] = array($item->getID(), $item->getMetadata(), $item->count);
|
||||
}
|
||||
}
|
||||
$this->data->set("inventory", $inv);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue