confusing "and" and for an "or"

This commit is contained in:
Hanro50 2025-10-15 19:23:41 +02:00
parent 776d079be0
commit efdd3277cc

View File

@ -38,7 +38,7 @@ public class CarryOnFabricMod implements ModInitializer {
builder -> builder builder -> builder
.initializer(() -> new CarryOnData(new CompoundTag())) .initializer(() -> new CarryOnData(new CompoundTag()))
.persistent(CarryOnData.CODEC) .persistent(CarryOnData.CODEC)
.syncWith(CarryOnData.STREAM_CODEC, (t, p) -> p.connection != null && !p.isRemoved()) .syncWith(CarryOnData.STREAM_CODEC, (t, p) -> p.connection != null || !p.isRemoved())
.copyOnDeath() .copyOnDeath()
); );