mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-10-15 16:05:14 +02:00
fix for an iterator error if there is only one element in the array.
This commit is contained in:
parent
00057eaca4
commit
92f83dfe73
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user