Skip to content

Commit

Permalink
Improve biome event some more
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 26, 2016
1 parent 34aeaff commit a01d687
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -64,8 +64,8 @@ public boolean couldMatch(ScriptContainer scriptContainer, String s) {
@Override
public boolean matches(ScriptContainer scriptContainer, String s) {
String lower = CoreUtilities.toLowerCase(s);
String biome_test = lower.substring(lower.lastIndexOf(" ") + 1);
String direction = lower.substring(lower.indexOf(" ") + 1, lower.lastIndexOf(" ") - 1);
String biome_test = lower.substring(lower.lastIndexOf(' ') + 1);
String direction = lower.substring(lower.indexOf(' ') + 1, lower.lastIndexOf(' ')).trim();

return biome_test.equals("biome")
|| (direction.equals("enters") && biome_test.equals(CoreUtilities.toLowerCase(new_biome.toString())))
Expand Down

0 comments on commit a01d687

Please sign in to comment.