Add Chests to rotations requiring sneaking
This commit is contained in:
parent
ef827f2ce6
commit
c625b5484c
2 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ import java.util.HashSet;
|
|||
import java.util.Set;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockButton;
|
||||
import net.minecraft.block.BlockChest;
|
||||
import net.minecraft.block.BlockLever;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
@ -20,6 +21,7 @@ public class ItemWrench extends ItemBuildCraft implements IToolWrench {
|
|||
setFull3D();
|
||||
shiftRotations.add(BlockLever.class);
|
||||
shiftRotations.add(BlockButton.class);
|
||||
shiftRotations.add(BlockChest.class);
|
||||
}
|
||||
|
||||
private boolean isShiftRotation(Class<? extends Block> cls) {
|
||||
|
|
|
@ -71,6 +71,7 @@ public class BlockTank extends BlockContainer {
|
|||
}
|
||||
|
||||
@SuppressWarnings({"all"})
|
||||
@Override
|
||||
public Icon getBlockTexture(IBlockAccess iblockaccess, int i, int j, int k, int l) {
|
||||
switch (l) {
|
||||
case 0:
|
||||
|
|
Loading…
Reference in a new issue