Revert "Closes #443, #466, #468"

This reverts commit faa6aa30d0.
This commit is contained in:
Stuart Pomeroy 2016-03-29 09:58:07 +01:00
parent faa6aa30d0
commit 4f9f98e1bd
2 changed files with 2 additions and 8 deletions

View file

@ -26,7 +26,7 @@ import techreborn.blocks.storage.BlockBatBox;
import techreborn.client.TechRebornCreativeTabMisc;
import techreborn.items.ItemTR;
import techreborn.lib.ModInfo;
import techreborn.tiles.storage.TileEnergyStorage;
import techreborn.tiles.storage.TileBatBox;
import java.util.ArrayList;
import java.util.List;
@ -60,7 +60,7 @@ public class ItemWrench extends ItemTR implements ITexturedItem
if (!player.isSneaking())
{
if (tile instanceof TileEnergyStorage)
if (tile instanceof TileBatBox)
{
tile.getWorld().setBlockState(tile.getPos(),
tile.getWorld().getBlockState(pos).withProperty(BlockBatBox.FACING, side.getOpposite()));

View file

@ -65,9 +65,6 @@ public class TileEnergyStorage extends TilePowerAcceptor implements IWrenchable,
if (inventory.getStackInSlot(0) != null)
{
ItemStack stack = inventory.getStackInSlot(0);
if(!(stack.getItem() instanceof IEnergyItemInfo)){
return;
}
IEnergyItemInfo item = (IEnergyItemInfo) inventory.getStackInSlot(0).getItem();
if (PoweredItem.getEnergy(stack) != PoweredItem.getMaxPower(stack))
{
@ -81,9 +78,6 @@ public class TileEnergyStorage extends TilePowerAcceptor implements IWrenchable,
if (inventory.getStackInSlot(1) != null)
{
ItemStack stack = inventory.getStackInSlot(1);
if(!(stack.getItem() instanceof IEnergyItemInfo)){
return;
}
IEnergyItemInfo item = (IEnergyItemInfo) stack.getItem();
if (item.canProvideEnergy(stack))
{