geforkt von Mirrors/Paper
Skip dead entities in getEntity(UUID) API
Dieser Commit ist enthalten in:
Ursprung
572da383b9
Commit
50811b1ca5
@ -18,7 +18,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ Entity entity;
|
+ Entity entity;
|
||||||
+ for (WorldServer world : worldServer) {
|
+ for (WorldServer world : worldServer) {
|
||||||
+ entity = world.getEntity(uuid);
|
+ entity = world.getEntity(uuid);
|
||||||
+ if (entity != null) {
|
+ if (entity != null && !entity.dead) {
|
||||||
+ return entity;
|
+ return entity;
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren