Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 09:20:08 +01:00
Don't error when NPC-annotated "entity" leaves the server (#1969)
fix: no need to remove never-added attachment
Dieser Commit ist enthalten in:
Ursprung
292d9f2439
Commit
598cd6ba19
@ -36,10 +36,6 @@ public class BukkitPermissionAttachmentManager {
|
|||||||
if (p == null) {
|
if (p == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (p.hasMetadata("NPC") && noopAttachment != null) {
|
|
||||||
p.removeAttachment(noopAttachment);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
PermissionAttachment attach = attachments.remove(p);
|
PermissionAttachment attach = attachments.remove(p);
|
||||||
if (attach != null) {
|
if (attach != null) {
|
||||||
p.removeAttachment(attach);
|
p.removeAttachment(attach);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren