From 5749b47c5caf16b317632c9e98c784d9f84bf304 Mon Sep 17 00:00:00 2001 From: Starbidou <113917317+Starbidou@users.noreply.github.com> Date: Sun, 7 Sep 2025 16:27:48 +0200 Subject: [PATCH] added call to original operation The original onRemoved method must be called so that the LivingEntity class can handle the removal of attribute modifiers. This mixin is given as an example in the main readme of the library but, as is, breaks the default behaviour of effects with modifiers such as minecraft:health_boost and minecraft:absorption. --- .../io/github/ladysnake/paltest/mixin/LivingEntityMixin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/testmod/java/io/github/ladysnake/paltest/mixin/LivingEntityMixin.java b/src/testmod/java/io/github/ladysnake/paltest/mixin/LivingEntityMixin.java index aaf7296..3b0ebfc 100644 --- a/src/testmod/java/io/github/ladysnake/paltest/mixin/LivingEntityMixin.java +++ b/src/testmod/java/io/github/ladysnake/paltest/mixin/LivingEntityMixin.java @@ -33,5 +33,6 @@ private void callOnRemoved(StatusEffect effect, AttributeContainer attributeCont if (effect instanceof FlightEffect flightEffect) { flightEffect.onRemoved((LivingEntity) (Object) this); } + original.call(effect, attributeContainer); } }