mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 10:18:36 +00:00
Fix variable argument functions in expressions
204ef7a708466d8739e5dcbfbc4794b57cabab0f Co-Authored-By: Octavia Togami <2093023+octylFractal@users.noreply.github.com>
This commit is contained in:
@ -678,7 +678,11 @@ public class UtilityCommands {
|
||||
try {
|
||||
expression = Expression.compile(String.join(" ", input));
|
||||
} catch (ExpressionException e) {
|
||||
actor.printError(TranslatableComponent.of("worldedit.calc.invalid", TextComponent.of(String.join(" ", input))));
|
||||
actor.printError(TranslatableComponent.of(
|
||||
"worldedit.calc.invalid.with-error",
|
||||
TextComponent.of(String.join(" ", input)),
|
||||
TextComponent.of(e.getMessage())
|
||||
));
|
||||
return;
|
||||
}
|
||||
WorldEditAsyncCommandBuilder.createAndSendMessage(actor, () -> {
|
||||
|
Reference in New Issue
Block a user