mirror of
https://github.com/PaperMC/Paper
synced 2026-08-20 18:26:12 -04:00
Don't show entities from hideEntity API when changing dimension (#13350)
This commit is contained in:
parent
26e81c4509
commit
782a076f0e
1 changed files with 1 additions and 1 deletions
|
|
@ -1217,7 +1217,7 @@
|
|||
ServerLevel.this.debugSynchronizers.dropEntity(entity);
|
||||
+ // CraftBukkit start
|
||||
+ entity.valid = false;
|
||||
+ if (!(entity instanceof ServerPlayer)) {
|
||||
+ if (!(entity instanceof ServerPlayer) && entity.getRemovalReason() != net.minecraft.world.entity.Entity.RemovalReason.CHANGED_DIMENSION) {
|
||||
+ for (ServerPlayer player : ServerLevel.this.server.getPlayerList().getPlayers()) { // Paper - call onEntityRemove for all online players
|
||||
+ player.getBukkitEntity().onEntityRemove(entity);
|
||||
+ }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue