Fix: Fix reference losing traits when serializing

This commit is contained in:
Sollace 2024-05-21 21:22:43 +01:00
parent 1f2df6daf5
commit d38a02dcd4
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -44,7 +44,7 @@ public final class SpellReference<T extends Spell> implements NbtSerialisable {
public void toNBT(NbtCompound compound) { public void toNBT(NbtCompound compound) {
if (spell != null && !spell.isDead()) { if (spell != null && !spell.isDead()) {
spell.toNBT(compound); spell.toNBT(compound);
spell.getTypeAndTraits().type().toNbt(compound); spell.getTypeAndTraits().toNbt(compound);
} }
} }