mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-03 21:37:28 +01:00
Skip dead entities in getEntity(UUID) API
This commit is contained in:
parent
572da383b9
commit
50811b1ca5
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ Entity entity;
|
||||
+ for (WorldServer world : worldServer) {
|
||||
+ entity = world.getEntity(uuid);
|
||||
+ if (entity != null) {
|
||||
+ if (entity != null && !entity.dead) {
|
||||
+ return entity;
|
||||
+ }
|
||||
+ }
|
||||
|
|
Loading…
Add table
Reference in a new issue