From cd226dea763247c1f84b2c0cdf294d9e40d85ccc Mon Sep 17 00:00:00 2001 From: IzzelAliz Date: Sat, 8 Aug 2020 14:41:14 +0800 Subject: [PATCH] Fix #29. --- .../mixin/core/network/play/ServerPlayNetHandlerMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {