1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-11 17:15:07 +02:00

fix for an iterator error if there is only one element in the array.

This commit is contained in:
ElgarL
2012-01-28 11:59:54 +00:00
parent 17a3497b00
commit 4c78ab4f2a

View File

@@ -207,9 +207,10 @@ public class BukkitPermissions {
String node = (String) itr.next();
String b = node.charAt(0) == '-'? node.substring(1):node;
// Insert the parent node before the child
if (allchildren.containsKey(b)) {
itr.previous();
itr.add(key);
itr.set(key);
itr.add(node);
break;
}
}