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