mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 16:37:45 +00:00
Fix GuiCustomScroll Null Crash
This commit is contained in:
1 parent
22e5046923
commit
7b28a26aea
1 file changed
+2
-1
@@ -270,7 +270,8 @@ public class GuiCustomScroll extends GuiScreen
|
||||
|
||||
public void setList(List<String> list){
|
||||
isSorted = true;
|
||||
Collections.sort(list, String.CASE_INSENSITIVE_ORDER);
|
||||
list.removeAll(Collections.singleton(null));
|
||||
Collections.sort(list, String.CASE_INSENSITIVE_ORDER);
|
||||
this.list = list;
|
||||
setSize(xSize,ySize);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user