Fixed spells getting destroyed when relogging

This commit is contained in:
Sollace 2023-08-06 18:29:45 +01:00
parent 54c0acb757
commit ca792dc4d2
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -147,6 +147,7 @@ public class EffectSync implements SpellContainer, NbtSerialisable {
@Override
public void fromNBT(NbtCompound compound) {
spells.fromNbt(compound.getCompound("spells"));
owner.asEntity().getDataTracker().set(param, spells.toNbt());
}
public interface UpdateCallback {