diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/network/play/ServerPlayNetHandlerMixin.java b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/network/play/ServerPlayNetHandlerMixin.java index 7859e631..0e9b2df3 100644 --- a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/network/play/ServerPlayNetHandlerMixin.java +++ b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/network/play/ServerPlayNetHandlerMixin.java @@ -1174,7 +1174,7 @@ public abstract class ServerPlayNetHandlerMixin implements ServerPlayNetHandlerB if (net.minecraftforge.common.ForgeHooks.onInteractEntityAt(player, entity, packetIn.getHitVec(), hand) != null) return; ActionResultType result = entity.applyPlayerInteraction(this.player, packetIn.getHitVec(), hand); - if (result.isSuccess()) { + if (result == ActionResultType.SUCCESS) { this.player.swingArm(hand); } if (!itemInHand.isEmpty() && itemInHand.getCount() <= -1) {