Skip to content

Commit

Permalink
Update mod version to b2.1, Mixin fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
StavWasPlayZ committed Oct 10, 2023
1 parent a46de51 commit 6646e5c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = project.mod_version
group = project.maven_group

base {
archivesName = project.archives_base_name
archivesName = project.archives_base_name + "-fabric-" + project.minecraft_version
}

repositories {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ org.gradle.parallel=true
# check these on https://fabricmc.net/develop
minecraft_version=1.20.1
parchment_mappings=1.20.1:2023.07.02
loader_version=0.14.23
loader_version=0.14.21

# Mod Properties
mod_version=1.0.0
mod_version=b2.1
maven_group=com.cstav.evenmoreinstruments
archives_base_name=evenmoreinstruments

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void load() {}

public static final GameRules.Key<GameRules.IntegerValue>
RULE_LOOPER_MAX_NOTES = GameRulesAccessor.callRegister(Main.MODID+"_looperMaxNotes", Category.MISC,
GameRuleIntegerInvoker.invokeCreate(255)
GameRuleIntegerInvoker.callCreate(255)
)
;
//NOTE: GameRulesIntRuleAccessor exists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
@Mixin(GameRules.IntegerValue.class)
public interface GameRuleIntegerInvoker {

@Invoker
public static GameRules.Type<GameRules.IntegerValue> invokeCreate(int pDefaultValue) {
@Invoker("create")
public static GameRules.Type<GameRules.IntegerValue> callCreate(int pDefaultValue) {
throw new AssertionError();
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"depends": {
"genshinstrument": ">=3.3.1",

"fabricloader": ">=0.14.23",
"fabricloader": ">=0.14.21",
"minecraft": "~1.20.1",
"java": ">=17",

Expand Down
6 changes: 4 additions & 2 deletions src/main/resources/mixins.evenmoreinstruments.optional.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"required": false,
"package": "com.cstav.evenmoreinstruments.mixins.optional",
"compatibilityLevel": "JAVA_17",
"refmap": "mixins.evenmoreinstruments.refmap.json",
"client": [
"ParrotLooperDanceInjector"
],
"minVersion": "0.8"
"minVersion": "0.8",
"injectors": {
"defaultRequire": 1
}
}
6 changes: 4 additions & 2 deletions src/main/resources/mixins.evenmoreinstruments.required.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"required": true,
"package": "com.cstav.evenmoreinstruments.mixins.required",
"compatibilityLevel": "JAVA_17",
"refmap": "mixins.evenmoreinstruments.refmap.json",
"mixins": [
"GameRuleIntegerInvoker"
],
"minVersion": "0.8"
"minVersion": "0.8",
"injectors": {
"defaultRequire": 1
}
}

0 comments on commit 6646e5c

Please sign in to comment.