From f64a8552393dd7784dca3ff9a169e7e81ab11ad6 Mon Sep 17 00:00:00 2001 From: yanggx98 Date: Fri, 22 Dec 2023 22:07:33 +0800 Subject: [PATCH] fix entity tick error when the mob attacked player entity --- .../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; } }