From d38a02dcd47bdb998e82e1b2293086fe6211d635 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 21 May 2024 21:22:43 +0100 Subject: [PATCH] Fix: Fix reference losing traits when serializing --- .../unicopia/ability/magic/spell/SpellReference.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/SpellReference.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/SpellReference.java index 97152693..c222de90 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/SpellReference.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/SpellReference.java @@ -44,7 +44,7 @@ public final class SpellReference implements NbtSerialisable { public void toNBT(NbtCompound compound) { if (spell != null && !spell.isDead()) { spell.toNBT(compound); - spell.getTypeAndTraits().type().toNbt(compound); + spell.getTypeAndTraits().toNbt(compound); } }