mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-12-26 19:29:27 +00:00
Added null checks for new maps
This commit is contained in:
parent
c24db71b78
commit
c238eb3afd
@ -442,6 +442,9 @@ public class MapEditorTabControllerImpl extends MapEditorTabController {
|
||||
}
|
||||
|
||||
private void sortScripts(Map m) {
|
||||
if (m == null || m.getScripts() == null || m.getScripts().getScript() == null) {
|
||||
return;
|
||||
}
|
||||
m.getScripts().getScript().sort((a, b) -> {
|
||||
if (a.getName().equalsIgnoreCase("init")) {
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user