Fixes #523
This commit is contained in:
parent
b2d5ee7b3d
commit
a2d626bc61
3 changed files with 7 additions and 100 deletions
|
@ -58,21 +58,9 @@ public class ItemWrench extends ItemTR implements ITexturedItem
|
|||
return EnumActionResult.FAIL;
|
||||
}
|
||||
|
||||
if (!player.isSneaking())
|
||||
if (!player.isSneaking() && !player.worldObj.isRemote)
|
||||
{
|
||||
if (tile instanceof TileEnergyStorage || tile instanceof IWrenchable)
|
||||
{
|
||||
if(((IWrenchable)tile).wrenchCanSetFacing(player, side.getOpposite())){
|
||||
|
||||
tile.getWorld().setBlockState(tile.getPos(),
|
||||
tile.getWorld().getBlockState(pos).withProperty(BlockBatBox.FACING, side.getOpposite()));
|
||||
|
||||
return EnumActionResult.SUCCESS;
|
||||
}else{
|
||||
|
||||
return EnumActionResult.FAIL;
|
||||
}
|
||||
} else if (tile instanceof TileMachineBase)
|
||||
if (tile instanceof TileMachineBase)
|
||||
{
|
||||
if (side != EnumFacing.DOWN && side != EnumFacing.UP)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue