Auto stash for revert of "Closes #443, #466, #468"

This commit is contained in:
Stuart Pomeroy 2016-03-29 10:00:23 +01:00
parent 4f9f98e1bd
commit ad9f50110a

View file

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