Fixed error when applying the bubble spell to entities

This commit is contained in:
Sollace 2024-06-22 18:29:44 +01:00
parent 92d2bc229f
commit 4dd3b2fb26
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -88,7 +88,7 @@ public class BubbleSpell extends AbstractSpell implements TimedSpell,
if (entity instanceof LivingEntity l) {
MODIFIERS.forEach((attribute, modifier) -> {
if (l.getAttributes().hasAttribute(attribute)) {
if (!l.getAttributes().hasAttribute(attribute)) {
l.getAttributeInstance(attribute).addPersistentModifier(modifier);
}
});