arm swing happens on both worlds

This commit is contained in:
Mohammad-Ali Minaie
2017-03-21 23:41:03 -04:00
parent 9c332d6b61
commit b521f25e7f

View File

@@ -73,11 +73,11 @@ public class Anvil extends CustomContainerFacing {
@Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz) {
if (world.isRemote) {
if (!player.isSwingInProgress) {
player.swingArm(hand);
}
}
/******************************************************************************
Crafting Anvil Recipes