Skip to content

Commit 7a266b1

Browse files
committed
Fix unvanishing showing the player in all worlds
1 parent f8c08cd commit 7a266b1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/mixins/java/org/spongepowered/common/mixin/core/world/entity

src/mixins/java/org/spongepowered/common/mixin/core/world/entity/EntityMixin.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,9 @@ public abstract class EntityMixin implements EntityBridge, PlatformEntityBridge,
376376
if ((Entity) (Object) this instanceof ServerPlayer player) {
377377
entityPlayerMP.connection.send(ClientboundPlayerInfoUpdatePacket.createPlayerInitializing(List.of(player)));
378378
}
379-
trackerAccessor.accessor$updatePlayer(entityPlayerMP);
379+
if (this.shadow$level() == entityPlayerMP.level()) {
380+
trackerAccessor.accessor$updatePlayer(entityPlayerMP);
381+
}
380382
}
381383
}
382384
}

0 commit comments

Comments
 (0)