From 7774c3f84e7fe8e325a3da7fe8acd82a143dc480 Mon Sep 17 00:00:00 2001 From: Fuchsin <111275492+yanggx98@users.noreply.github.com> Date: Fri, 22 Dec 2023 22:15:31 +0800 Subject: [PATCH] fix entity tick error when the mob attacked player entity (#465) --- .../enigmaticlegacy/handlers/EnigmaticEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/aizistral/enigmaticlegacy/handlers/EnigmaticEventHandler.java b/src/main/java/com/aizistral/enigmaticlegacy/handlers/EnigmaticEventHandler.java index 09c3a547..1651b9da 100644 --- a/src/main/java/com/aizistral/enigmaticlegacy/handlers/EnigmaticEventHandler.java +++ b/src/main/java/com/aizistral/enigmaticlegacy/handlers/EnigmaticEventHandler.java @@ -2002,7 +2002,7 @@ public void onEntityHurt(LivingHurtEvent event) { for (var type : advancedCurio.resistanceList.keySet()) { if (event.getSource().is(type)) { - event.setAmount(event.getAmount() * advancedCurio.resistanceList.get(event.getSource().typeHolder().unwrapKey()).get()); + event.setAmount(event.getAmount() * advancedCurio.resistanceList.get(event.getSource().typeHolder().unwrapKey().get()).get()); break; } }