Fixes chat error / plot deny *

This commit is contained in:
Jesse Boyd
2016-04-07 03:33:49 +10:00
parent 8b10b7109c
commit 45b6950111
2 changed files with 3 additions and 6 deletions

View File

@ -1635,7 +1635,7 @@ public class Plot {
public boolean removeDenied(UUID uuid) {
if (uuid == DBFunc.everyone) {
boolean result = false;
for (UUID other : getDenied()) {
for (UUID other : new HashSet<>(getDenied())) {
result = result || rmvDenied(other);
}
return result;
@ -1662,7 +1662,7 @@ public class Plot {
public boolean removeTrusted(UUID uuid) {
if (uuid == DBFunc.everyone) {
boolean result = false;
for (UUID other : getTrusted()) {
for (UUID other : new HashSet<>(getTrusted())) {
result = result || rmvTrusted(other);
}
return result;