From 6436a18d72a4c3e5327d97f91eb0ad51fbaeff9c Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 16 Sep 2024 20:10:38 +0100 Subject: [PATCH] Fixed crash when wearing alicorn amulet. Fixes #400 --- .../com/minelittlepony/unicopia/entity/AttributeContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/AttributeContainer.java b/src/main/java/com/minelittlepony/unicopia/entity/AttributeContainer.java index 8c2ba874..11000da1 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/AttributeContainer.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/AttributeContainer.java @@ -26,7 +26,7 @@ public interface AttributeContainer { EntityAttributeModifier modifier = instance.getModifier(id); if (!MathHelper.approximatelyEquals(desiredValue, modifier == null ? 0 : modifier.getValue())) { - instance.tryRemoveModifier(id); + instance.removeModifier(id); if (desiredValue != 0) { if (permanent) {