Skip to content

Commit

Permalink
fix 1.21.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
BluCobalt committed Dec 11, 2024
1 parent c73c7d4 commit 7637294
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ subprojects {

repositories {
maven {
url = uri("https://repo.legacyfabric.net/repository/maven/")
url = uri("https://repo.legacyfabric.net/maven/")
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ org.gradle.jvmargs=-Xmx8G
org.gradle.caching=true
#fabric.loom.multiProjectOptimisation=true

version = 2.0.5
yarn_1_21 = 1.21+build.7
version = 2.0.6
yarn_1_21 = 1.21.4+build.2
yarn_1_20_4 = 1.20.4+build.3
yarn_1_19_4 = 1.19.4+build.2
yarn_1_18_2 = 1.18.2+build.4
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pluginManagement {
repositories {
maven {
url = uri("https://repo.legacyfabric.net/repository/maven/")
url = uri("https://repo.legacyfabric.net/maven")
}
gradlePluginPortal()
}
Expand Down
2 changes: 1 addition & 1 deletion versions/1.21/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

dependencies {
minecraft "com.mojang:minecraft:1.21"
minecraft "com.mojang:minecraft:1.21.4"
mappings "net.fabricmc:yarn:${project.yarn_1_21}:v2"
implementation project(path: ":base", configuration: "namedElements")
modImplementation("net.fabricmc:fabric-loader:${project.loader_version}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

import java.util.List;

Expand All @@ -36,8 +37,8 @@
@Mixin(TitleScreen.class)
public class TitleScreenMixin1_21
{
@Inject(method = "initWidgetsNormal", at = @At(value = "TAIL"))
public void donothing(int y, int spacingY, CallbackInfo ci)
@Inject(method = "addNormalWidgets", at = @At(value = "TAIL"))
public void donothing(int y, int spacingY, CallbackInfoReturnable<Integer> cir)
{
if (MinecraftClient.getInstance().currentScreen instanceof TitleScreen) {
TitleScreenAccessor1_21 ts = (TitleScreenAccessor1_21) MinecraftClient.getInstance().currentScreen;
Expand Down

0 comments on commit 7637294

Please sign in to comment.