Fix start/stop_using_item

This commit is contained in:
fullwall 2021-08-14 13:30:12 +08:00
parent 1ef3e6b56b
commit 5a554c5d42
1 changed files with 2 additions and 2 deletions

View File

@ -93,12 +93,12 @@ public class PlayerAnimationImpl {
player.startFallFlying();
break;
case START_USE_MAINHAND_ITEM:
player.swing(InteractionHand.MAIN_HAND);
player.startUsingItem(InteractionHand.MAIN_HAND);
sendPacketNearby(new ClientboundSetEntityDataPacket(player.getId(), player.getEntityData(), true),
player, radius);
break;
case START_USE_OFFHAND_ITEM:
player.swing(InteractionHand.OFF_HAND);
player.startUsingItem(InteractionHand.OFF_HAND);
sendPacketNearby(new ClientboundSetEntityDataPacket(player.getId(), player.getEntityData(), true),
player, radius);
break;