Skip to content

Commit

Permalink
use new scriptevent method
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 18, 2019
1 parent 86614c0 commit 7e12ba6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -43,9 +43,9 @@ public boolean runInCheck(ScriptPath path, Location location, String innote) {
return true;
}

String it = path.eventArgsLower[index + 1];
String it = path.eventArgLowerAt(index + 1);
if (it.equals("notable")) {
String subit = path.eventArgsLower[index + 2];
String subit = path.eventArgLowerAt(index + 2);
if (subit.equals("cuboid")) {
return dCuboid.getNotableCuboidsContaining(location).size() > 0;
}
Expand Down
Expand Up @@ -88,7 +88,7 @@ private boolean runUsingCheck(ScriptPath path) {
using = "hand";
}
else {
using = path.eventArgsLower[index + 1];
using = path.eventArgLowerAt(index + 1);
}

if (!using.equals("hand") && !using.equals("off_hand") && !using.equals("either_hand")) {
Expand All @@ -113,7 +113,7 @@ public boolean nonSwitchWithCheck(ScriptPath path, dItem held) {
return true;
}

String with = path.eventArgsLower[index + 1];
String with = path.eventArgLowerAt(index + 1);
if (with != null) {
if (with.equals("item")) {
return true;
Expand Down

0 comments on commit 7e12ba6

Please sign in to comment.