Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
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;
|
||||
variables.put("e", new Constant(-1, Math.E));
|
||||
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) {
|
||||
variables.put(variableName, new Variable(0));
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren