Make getEntity dead check more specific
This commit is contained in:
parent
8a2d6a1790
commit
246294d161
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
Entity entity = worldserver.getEntity(uuid);
|
||||
|
||||
- if (entity != null) {
|
||||
+ if (entity != null && entity.isAlive()) {
|
||||
+ if (entity != null && !entity.dead) {
|
||||
return entity;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue