mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
Skip dead entities in getEntity(UUID) API
This commit is contained in:
@@ -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;
|
||||
+ }
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user