geforkt von Mirrors/FastAsyncWorldEdit
Update Upstream
95d784f Return false if Entity#remove is unsupported
Dieser Commit ist enthalten in:
Ursprung
207d029def
Commit
ceacd7b669
@ -113,7 +113,11 @@ public class BukkitEntity implements Entity {
|
|||||||
public boolean remove() {
|
public boolean remove() {
|
||||||
org.bukkit.entity.Entity entity = entityRef.get();
|
org.bukkit.entity.Entity entity = entityRef.get();
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
entity.remove();
|
try {
|
||||||
|
entity.remove();
|
||||||
|
} catch (UnsupportedOperationException e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return entity.isDead();
|
return entity.isDead();
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren