Skip to content

Commit

Permalink
compat with new core
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 13, 2020
1 parent e93e03f commit f9d7c9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -66,7 +66,7 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException
if (scriptEntry.getArguments().size() > 4) { // TODO: Use this more often!
throw new InvalidArgumentsException("Too many arguments! Did you forget a 'quote'?");
}
for (Argument arg : ArgumentHelper.interpret(scriptEntry.getOriginalArguments())) {
for (Argument arg : ArgumentHelper.interpret(scriptEntry, scriptEntry.getOriginalArguments())) {
if (!scriptEntry.hasObject("format")
&& arg.matchesPrefix("format", "f")) {
String formatStr = TagManager.tag(arg.getValue(), scriptEntry.getContext());
Expand Down
Expand Up @@ -107,7 +107,7 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException

Action action = Action.SET;

for (Argument arg : ArgumentHelper.interpret(scriptEntry.getOriginalArguments())) {
for (Argument arg : ArgumentHelper.interpret(scriptEntry, scriptEntry.getOriginalArguments())) {

if (!scriptEntry.hasObject("action")
&& arg.matchesEnum(Action.values())) {
Expand Down

0 comments on commit f9d7c9e

Please sign in to comment.