Skip to content

Commit

Permalink
Update to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyKnight committed Jul 13, 2024
1 parent 1ade43d commit b56b0d9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ org.gradle.jvmargs = -Xmx3G
org.gradle.parallel=true

# Fabric properties
common_minecraft_version = 1.20.4
common_yarn_mappings = 1.20.4+build.3
loader_version = 0.15.7
common_minecraft_version = 1.21
common_yarn_mappings = 1.21+build.2
loader_version = 0.15.11

# Mod properties
mod_version = 1.7.2
mod_version = 1.8.0
maven_group = me.mightyknight
archives_base_name = shield-disruptor

Expand Down
2 changes: 1 addition & 1 deletion shield-disruptor-mc120/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
]
},
"depends": {
"minecraft": ["1.20.x"]
"minecraft": ["1.20.x", "1.21.x"]
},
"custom": {
"modmenu": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ private void hideShield(LivingEntity entity, ItemStack stack, ModelTransformatio
}

// Block items in the tag "c:tools/shields" (>1.20.5)
if(Versioned.REGISTRY.stackHasTag(stack, new Identifier("c", "tools/shields"))) {
if(Versioned.REGISTRY.stackHasTag(stack, Identifier.of("c", "tools/shields"))) {
callback.cancel();
return;
}

// Block items in the item tag "c:shields"
// [LEGACY] This tag was changed to "c:tools/shields" in 1.20.5
if(Versioned.REGISTRY.stackHasTag(stack, new Identifier("c", "shields"))) {
if(Versioned.REGISTRY.stackHasTag(stack, Identifier.of("c", "shields"))) {
callback.cancel();
return;
}
Expand All @@ -93,7 +93,7 @@ private void hideShield(LivingEntity entity, ItemStack stack, ModelTransformatio
}

// Check if item has the tag
Identifier tagId = new Identifier(
Identifier tagId = Identifier.of(
tagKey.split(":")[0].replaceFirst("#", ""),
tagKey.split(":")[1]);

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 @@ -31,7 +31,7 @@
"shieldisruptor.mixins.json"
],
"depends": {
"minecraft": ["1.16.x", "1.17.x", "1.18.x", "1.19.x", "1.20.x"],
"minecraft": ["1.16.x", "1.17.x", "1.18.x", "1.19.x", "1.20.x", "1.21.x"],
"cloth-config2": "*"
},
"recommends": {
Expand Down

0 comments on commit b56b0d9

Please sign in to comment.