Terminals show now drop View Cells.

This commit is contained in:
AlgorithmX2
2014-04-16 11:59:37 -05:00
parent 3736239658
commit 9f7e809662
2 changed files with 14 additions and 0 deletions
@@ -33,6 +33,8 @@ public class PartCraftingTerminal extends PartTerminal implements IAEAppEngInven
@Override
public void getDrops(List<ItemStack> drops, boolean wrenched)
{
super.getDrops(drops, wrenched);
for (ItemStack is : craftingGrid)
if ( is != null )
drops.add( is );
+12
View File
@@ -1,5 +1,7 @@
package appeng.parts.reporting;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
@@ -37,6 +39,16 @@ public class PartTerminal extends PartMonitor implements ITerminalHost, IConfigM
cm.registerSetting( Settings.SORT_DIRECTION, SortDir.ASCENDING );
}
@Override
public void getDrops(List<ItemStack> drops, boolean wrenched)
{
super.getDrops(drops, wrenched);
for (ItemStack is : viewCell)
if ( is != null )
drops.add( is );
}
@Override
public void readFromNBT(NBTTagCompound data)
{