fixes the kick on respawn bug
This commit is contained in:
parent
98247bceb2
commit
af25f681be
|
|
@ -38,7 +38,7 @@ public class CarryOnFabricMod implements ModInitializer {
|
|||
builder -> builder
|
||||
.initializer(() -> new CarryOnData(new CompoundTag()))
|
||||
.persistent(CarryOnData.CODEC)
|
||||
.syncWith(CarryOnData.STREAM_CODEC, (t, p) -> p.connection != null)
|
||||
.syncWith(CarryOnData.STREAM_CODEC, (t, p) -> p.connection != null && !p.isRemoved())
|
||||
.copyOnDeath()
|
||||
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user