mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-08-28 16:28:59 +00:00
Fix for NPE while loading data
This commit is contained in:
parent
0ddc073a3d
commit
eb61a9f8ff
@ -98,6 +98,9 @@ public class DataUtilities {
|
||||
private static void logScripts(Scripts scripts, PrintWriter logger) {
|
||||
if (scripts != null && scripts.getScript() != null || !scripts.getScript().isEmpty()) {
|
||||
scripts.getScript().forEach((script) -> {
|
||||
if (script.getBlock() == null) {
|
||||
return;
|
||||
}
|
||||
Queue<Block> evaluateStack = new ArrayDeque<>();
|
||||
evaluateStack.add(script.getBlock());
|
||||
int blockCount = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user