Skip to content

Commit

Permalink
fix misdetection of enters portal event with portal_ prefixed areas
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 3, 2020
1 parent 85dcb31 commit 4802e0a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -46,7 +46,7 @@ public EntityEntersPortalScriptEvent() {

@Override
public boolean couldMatch(ScriptPath path) {
if (!path.eventLower.contains("enters portal")) {
if (!path.eventArgAt(1).equals("enters") || !path.eventArgAt(2).equals("portal")) {
return false;
}
if (!couldMatchEntity(path.eventArgLowerAt(0))) {
Expand Down

0 comments on commit 4802e0a

Please sign in to comment.