diff --git a/gradle.properties b/gradle.properties index ac4d0cd6..5c1be033 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ org.gradle.daemon=false displayname=Unicopia authors=Sollace description=Magical Abilities for Mine Little Pony! - version=8 + version=8b release=BETA # Dependencies diff --git a/src/main/java/com/minelittlepony/unicopia/network/EffectSync.java b/src/main/java/com/minelittlepony/unicopia/network/EffectSync.java index 9ae4999a..393f3733 100644 --- a/src/main/java/com/minelittlepony/unicopia/network/EffectSync.java +++ b/src/main/java/com/minelittlepony/unicopia/network/EffectSync.java @@ -62,8 +62,10 @@ public class EffectSync implements SpellContainer { } private void sync(boolean force) { + @Nullable CompoundTag comp = owner.getEntity().getDataTracker().get(param); + @Nullable Spell effect = spell.orElse(null); if (comp == null || !comp.contains("effect_id") || !comp.contains("uuid")) {