mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Furnaces and Burning items
This commit is contained in:
parent
221da1685e
commit
f224c26084
10 changed files with 253 additions and 16 deletions
|
|
@ -113,10 +113,12 @@ class ChestBlock extends TransparentBlock{
|
|||
"title" => "Chest",
|
||||
));
|
||||
$slots = array();
|
||||
for($s = 0; $s < CHEST_SLOTS; ++$s){
|
||||
for($s = 0; $s <= CHEST_SLOTS; ++$s){
|
||||
$slot = $chest->getSlot($s);
|
||||
if($slot->getID() > 0 and $slot->count > 0){
|
||||
$slots[] = $slot;
|
||||
}else{
|
||||
$slots[] = BlockAPI::getItem(AIR, 0, 0);
|
||||
}
|
||||
}
|
||||
$player->dataPacket(MC_CONTAINER_SET_CONTENT, array(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue