mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 20:12:54 +00:00
fix for an iterator error if there is only one element in the array.
This commit is contained in:
parent
00057eaca4
commit
92f83dfe73
1 changed files with 3 additions and 2 deletions
|
@ -207,9 +207,10 @@ public class BukkitPermissions {
|
||||||
String node = (String) itr.next();
|
String node = (String) itr.next();
|
||||||
String b = node.charAt(0) == '-'? node.substring(1):node;
|
String b = node.charAt(0) == '-'? node.substring(1):node;
|
||||||
|
|
||||||
|
// Insert the parent node before the child
|
||||||
if (allchildren.containsKey(b)) {
|
if (allchildren.containsKey(b)) {
|
||||||
itr.previous();
|
itr.set(key);
|
||||||
itr.add(key);
|
itr.add(node);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue