moved overlay to the new command system, added spheres and boxes
This commit is contained in:
1 parent
37391d2726
commit
7046166561
3 files changed
+73
-29
No files matched your search
@@ -136,7 +136,7 @@ public class CarpetScriptHost extends ScriptHost
|
||||
String hostName = main.getName();
|
||||
List<String> commandArgs = path.stream().filter(t -> t.isArgument).map(t -> t.surface).collect(Collectors.toList());
|
||||
if (commandArgs.size() != (functionSpec.function.getNumParams()-functionSpec.args.size()) )
|
||||
throw CommandArgument.error("Number of parameters in function doesn't match parameters for a command");
|
||||
throw CommandArgument.error("Number of parameters in function "+functionSpec.function.fullName()+" doesn't match parameters for a command");
|
||||
if (path.isEmpty())
|
||||
{
|
||||
return command.executes((c) -> execute(c, hostName, functionSpec, Collections.emptyList()));
|
||||
|
||||
Reference in new issue
Block a user