Skip to content

Commit

Permalink
Set core version to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jun 14, 2024
1 parent 95a9a69 commit 20ed1ed
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ private ResourceLocations() {

public static ResourceLocation minecraft(String path) {
//#if MC >= 1.21
//$$ return ResourceLocation.withDefaultNamespace(path);
return ResourceLocation.withDefaultNamespace(path);
//#else
return new ResourceLocation(ResourceLocation.DEFAULT_NAMESPACE, path);
//$$ return new ResourceLocation(ResourceLocation.DEFAULT_NAMESPACE, path);
//#endif
}

Expand All @@ -29,9 +29,9 @@ public static ResourceLocation worldHost(String path) {

public static ResourceLocation namespaced(String namespace, String path) {
//#if MC >= 1.21
//$$ return ResourceLocation.fromNamespaceAndPath(namespace, path);
return ResourceLocation.fromNamespaceAndPath(namespace, path);
//#else
return new ResourceLocation(namespace, path);
//$$ return new ResourceLocation(namespace, path);
//#endif
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ private void toastRender(CallbackInfo ci) {
//#endif
mouseX, mouseY,
//#if MC >= 1.21
//$$ minecraft.getTimer().getRealtimeDeltaTicks()
minecraft.getTimer().getRealtimeDeltaTicks()
//#else
minecraft.getFrameTime()
//$$ minecraft.getFrameTime()
//#endif
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ side = "BOTH"
[[dependencies.world_host]]
modId = "minecraft"
##if MC == 1.20.6
versionRange = "[1.20.5,1.20.7)"
#?? versionRange = "[1.20.5,1.20.7)"
##else
#?? versionRange = "[$mc_version]"
versionRange = "[$mc_version]"
##endif
type = "required"
ordering = "NONE"
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
//#elseif MC == 1.20.4
//?? "minecraft": ">=1.20.3- <1.20.5",
//#elseif MC == 1.20.6
"minecraft": ">=1.20.5- <1.20.7",
//?? "minecraft": ">=1.20.5- <1.20.7",
//#else
//?? "minecraft": "$mc_version",
"minecraft": "$mc_version",
//#endif
"fabric-resource-loader-v0": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion versions/mainProject
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.20.6-fabric
1.21-fabric

0 comments on commit 20ed1ed

Please sign in to comment.