Skip to content

Commit

Permalink
remove stray uppercasing for advancement lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 12, 2019
1 parent d6494c8 commit c80e35d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -2025,7 +2025,7 @@ else if (foodLevel / maxHunger < 1) {
// Returns whether the player has completed the specified advancement.
// -->
if (attribute.startsWith("has_advancement") && attribute.hasContext(1)) {
Advancement adv = AdvancementHelper.getAdvancement(attribute.getContext(1).toUpperCase());
Advancement adv = AdvancementHelper.getAdvancement(attribute.getContext(1));
if (adv == null) {
if (!attribute.hasAlternative()) {
Debug.echoError("Advancement '" + attribute.getContext(1) + "' does not exist.");
Expand Down Expand Up @@ -2370,7 +2370,7 @@ public void adjust(Mechanism mechanism) {
// <PlayerTag.has_advancement[<name>]>
// -->
if (mechanism.matches("award_advancement")) {
Advancement adv = AdvancementHelper.getAdvancement(mechanism.getValue().asString().toUpperCase());
Advancement adv = AdvancementHelper.getAdvancement(mechanism.getValue().asString());
if (adv == null) {
if (mechanism.shouldDebug()) {
Debug.echoError("Advancement '" + mechanism.getValue().asString() + "' does not exist.");
Expand Down

0 comments on commit c80e35d

Please sign in to comment.