mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed error when applying the bubble spell to entities
This commit is contained in:
parent
92d2bc229f
commit
4dd3b2fb26
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ public class BubbleSpell extends AbstractSpell implements TimedSpell,
|
||||||
|
|
||||||
if (entity instanceof LivingEntity l) {
|
if (entity instanceof LivingEntity l) {
|
||||||
MODIFIERS.forEach((attribute, modifier) -> {
|
MODIFIERS.forEach((attribute, modifier) -> {
|
||||||
if (l.getAttributes().hasAttribute(attribute)) {
|
if (!l.getAttributes().hasAttribute(attribute)) {
|
||||||
l.getAttributeInstance(attribute).addPersistentModifier(modifier);
|
l.getAttributeInstance(attribute).addPersistentModifier(modifier);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue