fix spawnwave ui when natural is a variable (#10307)
Previously you couldn't set the x and y parameters of the spawnwave instruction if the value for the "natural" parameter was not exactly "false", now you can set them with "false" and any other variable name, except "true".
This commit is contained in:
@@ -1493,11 +1493,11 @@ public class LStatements{
|
||||
table.add("natural ");
|
||||
fields(table, natural, str -> natural = str);
|
||||
|
||||
table.add("x ").visible(() -> natural.equals("false"));
|
||||
fields(table, x, str -> x = str).visible(() -> natural.equals("false"));
|
||||
table.add("x ").visible(() -> !natural.equals("true"));
|
||||
fields(table, x, str -> x = str).visible(() -> !natural.equals("true"));
|
||||
|
||||
table.add(" y ").visible(() -> natural.equals("false"));
|
||||
fields(table, y, str -> y = str).visible(() -> natural.equals("false"));
|
||||
table.add(" y ").visible(() -> !natural.equals("true"));
|
||||
fields(table, y, str -> y = str).visible(() -> !natural.equals("true"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user