Skip to content

Commit

Permalink
Updated for MC1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Estecka committed Jun 13, 2024
1 parent c277a3f commit a84e8e9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
Initial release

## 1.1
### 1.1.0
- Categories of the same mod are now sorted together in the wildcard tab.
- Vanilla categories are sorted in the same order as in the vanilla screen.
- Vanilla categories and tab are now sorted before modded ones.
### 1.1.1
- Updated for MC-1.21
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ loader_version=0.15.7
fabric_version=0.87.2+1.19.4

# Mod Properties
mod_version=1.1.0
mod_version=1.1.1
maven_group=tk.estecka.cloth-gamerules
archives_base_name=cloth-gamerules

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tk/estecka/clothgamerules/IRuleCategory.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static public IRuleCategory Of(GameRules.Category vanilla){
}

@Override public Identifier GetId(){
return new Identifier("minecraft", vanilla.getCategory().replace('.', '_'));
return Identifier.of("minecraft", vanilla.getCategory().replace('.', '_'));
}

};
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tk/estecka/clothgamerules/TestRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static public enum ETestEnum {
public void onInitialize() {
if (FabricLoader.getInstance().isDevelopmentEnvironment())
{
CustomGameRuleCategory category = new CustomGameRuleCategory(new Identifier("cloth-gamerules", "test_rules"), Text.literal("Test Rules"));
CustomGameRuleCategory category = new CustomGameRuleCategory(Identifier.of("cloth-gamerules", "test_rules"), Text.literal("Test Rules"));
GameRuleRegistry.register("clothrule.bool", category, GameRuleFactory.createBooleanRule(true));
GameRuleRegistry.register("clothrule.int", category, GameRuleFactory.createIntRule(1));
GameRuleRegistry.register("clothrule.double", category, GameRuleFactory.createDoubleRule(1.0));
Expand Down

0 comments on commit a84e8e9

Please sign in to comment.