Skip to content

Commit

Permalink
Merge branch 'scenario-api'
Browse files Browse the repository at this point in the history
  • Loading branch information
PdeBot committed Jan 9, 2021
2 parents 46eb5dd + 57065d4 commit 3ae50ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pluginGroup=com.gmail.val59000mc
pluginVersion=1.18.9
pluginVersion=1.18.10
4 changes: 3 additions & 1 deletion src/main/java/com/gmail/val59000mc/scenarios/Scenario.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ public Class<? extends ScenarioListener> getListener() {
}

public boolean equals(String name){
return name.contains(info.getName()) || name.replace(" ", "").toLowerCase().equals(key);
return name.contains(info.getName()) ||
name.replace(" ", "").toLowerCase().equals(key) ||
name.replace(" ", "").toLowerCase().equals(key.replace("_", ""));
}

public ItemStack getScenarioItem(){
Expand Down

0 comments on commit 3ae50ea

Please sign in to comment.