Skip to content

Commit

Permalink
Merge branch '1.19.4-old' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonEggBedrockBreaking committed Jun 8, 2023
2 parents ed6ee20 + 80d4eb5 commit 2e45385
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ public abstract class MixinPlayerAdvancements implements Maps {
@ModifyReturnValue(method = "getOrStartProgress", at = @At("RETURN"))
private AdvancementProgress cancelPerformingCriterion(AdvancementProgress original, Advancement advancement) {
if (advancement.getDisplay() != null) {
Gamerules gameRule = playerAdvancementsStringMap.get(advancement.getDisplay().getTitle().toString().split("'")[1]);
if (!Gamerules.ADVANCEMENTS_ENABLED.getBool() || (gameRule != null && !gameRule.getBool())) {
return new AdvancementProgress();
}
try {
Gamerules gameRule = playerAdvancementsStringMap.get(advancement.getDisplay().getTitle().toString().split("'")[1]);
if (!Gamerules.ADVANCEMENTS_ENABLED.getBool() || (gameRule != null && !gameRule.getBool())) {
return new AdvancementProgress();
}
} catch (ArrayIndexOutOfBoundsException ignored) {}
}
return original;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "vanilla_disable",
"version": "2.4.0",
"version": "2.4.1",
"name": "Vanilla Disable",
"description": "Allows you to disable a lot of vanilla features.",
"authors": [
Expand Down

0 comments on commit 2e45385

Please sign in to comment.