Fixed shift-click in battery output losing all internal cells
This commit is contained in:
parent
3022e5056d
commit
3f034e6bd5
2 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -121,8 +121,6 @@ public class TileEntityTickWire extends TileEntityWire implements IElectrical
|
|||
this.furnaces.put(direction, (TileEntityFurnace) tileEntity);
|
||||
}
|
||||
}
|
||||
System.out.println("TEST " + this.furnaces.size());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue