Add Chests to rotations requiring sneaking

This commit is contained in:
CovertJaguar 2013-08-24 17:26:38 -07:00
parent ef827f2ce6
commit c625b5484c
2 changed files with 3 additions and 0 deletions

View file

@ -5,6 +5,7 @@ import java.util.HashSet;
import java.util.Set; import java.util.Set;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.BlockButton; import net.minecraft.block.BlockButton;
import net.minecraft.block.BlockChest;
import net.minecraft.block.BlockLever; import net.minecraft.block.BlockLever;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
@ -20,6 +21,7 @@ public class ItemWrench extends ItemBuildCraft implements IToolWrench {
setFull3D(); setFull3D();
shiftRotations.add(BlockLever.class); shiftRotations.add(BlockLever.class);
shiftRotations.add(BlockButton.class); shiftRotations.add(BlockButton.class);
shiftRotations.add(BlockChest.class);
} }
private boolean isShiftRotation(Class<? extends Block> cls) { private boolean isShiftRotation(Class<? extends Block> cls) {

View file

@ -71,6 +71,7 @@ public class BlockTank extends BlockContainer {
} }
@SuppressWarnings({"all"}) @SuppressWarnings({"all"})
@Override
public Icon getBlockTexture(IBlockAccess iblockaccess, int i, int j, int k, int l) { public Icon getBlockTexture(IBlockAccess iblockaccess, int i, int j, int k, int l) {
switch (l) { switch (l) {
case 0: case 0: