Skip to content

Commit

Permalink
Ported to 1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Stereowalker committed Nov 23, 2024
1 parent 7de5f76 commit c46cf6e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
### Fixed:
-
### Changed:
- Updated to mc 1.20.6
- Updated to mc 1.21.1
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ modGroup = net.rpgz
_curseforge_id = 404828
_modrinth_id = x
## Environment Properties
_minecraft_version = 1.20.6
_minecraft_version_min = 1.20
_minecraft_version_max = 1.21
_minecraft_version = 1.21.1
_minecraft_version_min = 1.21
_minecraft_version_max = 1.22
_loader = Forge
_loader_file = META-INF/mods.toml
_loader_version = 50.1.0
_loader_version_min = 50
_loader_version_max = 52
_loader_version = 52.0.1
_loader_version_min = 51
_loader_version_max = 53
_unionlib_version = 12.0.7
_unionlib_version_min = 12.0.3
_unionlib_version_max = 12.1.0
Expand Down
3 changes: 2 additions & 1 deletion main.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ publishMods {
if ("${_mod_release}" == "beta") type = BETA
if ("${_mod_release}" == "alpha") type = ALPHA
minecraftVersions.add("${_minecraft_version}")
minecraftVersions.add("1.21")
modLoaders.add("${_loader}")
requires('unionlib')
file = project._mod_jar.archiveFile
Expand All @@ -79,7 +80,7 @@ modrinth {
versionNumber = "${project.version}"
versionType = "${_mod_release}"
uploadFile = project._mod_jar
gameVersions = ["${_minecraft_version}"]
gameVersions = ["${_minecraft_version}", "1.21"]
loaders = ["${_loader}".toLowerCase()]
changelog = file('changelog.md').text
dependencies {
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/net/rpgz/mixin/InGameHudMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.mojang.blaze3d.systems.RenderSystem;
import com.stereowalker.unionlib.util.VersionHelper;

import net.minecraft.client.DeltaTracker;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.GuiGraphics;
Expand All @@ -35,7 +36,7 @@ public InGameHudMixin(Minecraft mc) {
}

@Inject(method = "render", at = @At(value = "TAIL"))
private void renderIngameGuiMixin(GuiGraphics pGuiGraphics, float f, CallbackInfo info) {
private void renderIngameGuiMixin(GuiGraphics pGuiGraphics, DeltaTracker f, CallbackInfo info) {
this.renderLootBag(pGuiGraphics);
}

Expand Down

0 comments on commit c46cf6e

Please sign in to comment.