3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-07-22 01:58:02 +02:00

Update Upstream

95d784f Return false if Entity#remove is unsupported
Dieser Commit ist enthalten in:
NotMyFault 2021-04-22 20:41:49 +02:00
Ursprung 207d029def
Commit ceacd7b669
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C

Datei anzeigen

@ -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;