Fixed Chests and Furnaces not droping their contents when broken

This commit is contained in:
Shoghi Cervantes
2014-05-28 15:34:34 +02:00
parent c778e0467e
commit 130b2c4910
3 changed files with 5 additions and 4 deletions

View File

@ -136,8 +136,8 @@ class Chest extends Transparent{
);
$t = $this->getLevel()->getTile($this);
if($t instanceof TileChest){
for($s = 0; $s < $t->getInventory()->getSize(); ++$s){
$slot = $t->getInventory()->getItem($s);
for($s = 0; $s < $t->getRealInventory()->getSize(); ++$s){
$slot = $t->getRealInventory()->getItem($s);
if($slot->getID() > Item::AIR and $slot->getCount() > 0){
$drops[] = array($slot->getID(), $slot->getDamage(), $slot->getCount());
}