mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-14 17:14:22 +01:00
Fixed spells getting destroyed when relogging
This commit is contained in:
parent
54c0acb757
commit
ca792dc4d2
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ public class EffectSync implements SpellContainer, NbtSerialisable {
|
||||||
@Override
|
@Override
|
||||||
public void fromNBT(NbtCompound compound) {
|
public void fromNBT(NbtCompound compound) {
|
||||||
spells.fromNbt(compound.getCompound("spells"));
|
spells.fromNbt(compound.getCompound("spells"));
|
||||||
|
owner.asEntity().getDataTracker().set(param, spells.toNbt());
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface UpdateCallback {
|
public interface UpdateCallback {
|
||||||
|
|
Loading…
Reference in a new issue