Wrenches no longer rotate when sneaking.
This commit is contained in:
parent
79a8da50a8
commit
dc9a337560
|
@ -27,7 +27,7 @@ public class ToolQuartzWrench extends AEBaseItem implements IAEWrench, IToolWren
|
|||
public boolean onItemUseFirst(ItemStack is, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
|
||||
{
|
||||
int id = world.getBlockId( x, y, z );
|
||||
if ( id > 0 )
|
||||
if ( id > 0 && !player.isSneaking() )
|
||||
{
|
||||
Block b = Block.blocksList[id];
|
||||
if ( b != null )
|
||||
|
|
Loading…
Reference in a new issue