Fixed Chest Slots not getting sent and shown

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-23 17:44:32 +01:00
parent 5e52bbdd16
commit d613fa2138
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class BurningFurnaceBlock extends SolidBlock{
"slots" => 3,
"title" => "Furnace",
));
for($s = 0; $s < 3; ++$s){
for($s = 0; $s < FURNACE_SLOTS; ++$s){
$slot = $furnace->getSlot($s);
if($slot->getID() > 0 and $slot->count > 0){
$player->dataPacket(MC_CONTAINER_SET_SLOT, array(

View File

@ -110,7 +110,7 @@ class ChestBlock extends SolidBlock{
"slots" => 27,
"title" => "Chest",
));
for($s = 0; $s < 3; ++$s){
for($s = 0; $s < CHEST_SLOTS; ++$s){
$slot = $chest->getSlot($s);
if($slot->getID() > 0 and $slot->count > 0){
$player->dataPacket(MC_CONTAINER_SET_SLOT, array(