Possible fix for #289 [gh#289]

This commit is contained in:
Shoghi Cervantes 2013-05-26 12:04:26 +02:00
parent d92056fe77
commit f6a395e7b7
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -113,7 +113,7 @@ 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;