Fixed shift-click in battery output losing all internal cells

This commit is contained in:
Calclavia 2013-08-22 22:45:38 +08:00
parent 3022e5056d
commit 3f034e6bd5
2 changed files with 10 additions and 2 deletions

View file

@ -75,4 +75,14 @@ public class ContainerBattery extends ContainerBase
{
return tileEntity.isUseableByPlayer(entityplayer);
}
@Override
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int slotID)
{
if (slotID != 1)
{
return super.transferStackInSlot(par1EntityPlayer, slotID);
}
return null;
}
}

View file

@ -121,8 +121,6 @@ public class TileEntityTickWire extends TileEntityWire implements IElectrical
this.furnaces.put(direction, (TileEntityFurnace) tileEntity);
}
}
System.out.println("TEST " + this.furnaces.size());
}
}