geforkt von Mirrors/FastAsyncWorldEdit
Added true and false constants to the expression parser.
Dieser Commit ist enthalten in:
Ursprung
c2cd587a9b
Commit
a51bc28756
@ -73,6 +73,8 @@ public class Expression {
|
|||||||
this.variableNames = variableNames;
|
this.variableNames = variableNames;
|
||||||
variables.put("e", new Constant(-1, Math.E));
|
variables.put("e", new Constant(-1, Math.E));
|
||||||
variables.put("pi", new Constant(-1, Math.PI));
|
variables.put("pi", new Constant(-1, Math.PI));
|
||||||
|
variables.put("true", new Constant(-1, 1));
|
||||||
|
variables.put("false", new Constant(-1, 0));
|
||||||
for (String variableName : variableNames) {
|
for (String variableName : variableNames) {
|
||||||
variables.put(variableName, new Variable(0));
|
variables.put(variableName, new Variable(0));
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren