mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 06:32:17 -07:00
Make getEntity dead check more specific
This commit is contained in:
@@ -21,7 +21,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
Entity entity = worldserver.getEntity(uuid);
|
Entity entity = worldserver.getEntity(uuid);
|
||||||
|
|
||||||
- if (entity != null) {
|
- if (entity != null) {
|
||||||
+ if (entity != null && entity.isAlive()) {
|
+ if (entity != null && !entity.dead) {
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user