mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Update Upstream
95d784f Return false if Entity#remove is unsupported
This commit is contained in:
parent
207d029def
commit
ceacd7b669
@ -113,7 +113,11 @@ public class BukkitEntity implements Entity {
|
||||
public boolean remove() {
|
||||
org.bukkit.entity.Entity entity = entityRef.get();
|
||||
if (entity != null) {
|
||||
entity.remove();
|
||||
try {
|
||||
entity.remove();
|
||||
} catch (UnsupportedOperationException e) {
|
||||
return false;
|
||||
}
|
||||
return entity.isDead();
|
||||
} else {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user