Fixed Issue with Interface and Gui, and Derpy Automation( Hoppers )

This commit is contained in:
AlgorithmX2
2014-01-30 19:23:12 -06:00
parent d10033fb50
commit 79a8da50a8
4 changed files with 26 additions and 3 deletions
+6 -1
View File
@@ -4,6 +4,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import appeng.tile.inventory.AppEngInternalInventory;
public class AppEngSlot extends Slot
{
@@ -51,7 +52,11 @@ public class AppEngSlot extends Slot
@Override
public void onSlotChanged()
{
super.onSlotChanged();
if ( inventory instanceof AppEngInternalInventory )
((AppEngInternalInventory) inventory).onInventoryChanged( getSlotIndex() );
else
super.onSlotChanged();
isValid = hasCalculatedValidness.NotAvailable;
}