From 373759039b43e71e08afafda8d7f9c0be75b53f9 Mon Sep 17 00:00:00 2001 From: Drex Date: Wed, 5 Jun 2024 09:06:35 +0200 Subject: [PATCH] Update to 1.21 (#59) * Update to 24w21b * Update to 1.21-pre2 --- .../translations/impl/ServerTranslations.java | 2 +- build.gradle | 4 ++-- .../mixin/MixinThreadedAnvilChunkStorage.java | 13 ------------- src/main/resources/server_translations.mixin.json | 1 - 4 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 src/main/java/fr/catcore/server/translations/mixin/MixinThreadedAnvilChunkStorage.java diff --git a/api/src/main/java/xyz/nucleoid/server/translations/impl/ServerTranslations.java b/api/src/main/java/xyz/nucleoid/server/translations/impl/ServerTranslations.java index 8bc6c52..484ef01 100644 --- a/api/src/main/java/xyz/nucleoid/server/translations/impl/ServerTranslations.java +++ b/api/src/main/java/xyz/nucleoid/server/translations/impl/ServerTranslations.java @@ -193,7 +193,7 @@ public void onInitialize() { @Override public Identifier getFabricId() { - return new Identifier(ID, "translations"); + return Identifier.of(ID, "translations"); } @Override diff --git a/build.gradle b/build.gradle index 0d62c61..a5c802f 100644 --- a/build.gradle +++ b/build.gradle @@ -8,8 +8,8 @@ plugins { } class Globals { - static def baseVersion = "2.3.0" - static def mcVersion = "1.20.5-rc2" + static def baseVersion = "2.3.1" + static def mcVersion = "1.21-pre2" static def yarnVersion = "+build.1" } diff --git a/src/main/java/fr/catcore/server/translations/mixin/MixinThreadedAnvilChunkStorage.java b/src/main/java/fr/catcore/server/translations/mixin/MixinThreadedAnvilChunkStorage.java deleted file mode 100644 index b7c7f5c..0000000 --- a/src/main/java/fr/catcore/server/translations/mixin/MixinThreadedAnvilChunkStorage.java +++ /dev/null @@ -1,13 +0,0 @@ -package fr.catcore.server.translations.mixin; - -import net.minecraft.server.world.ThreadedAnvilChunkStorage; -import org.spongepowered.asm.mixin.Mixin; - -@Mixin(ThreadedAnvilChunkStorage.class) -public class MixinThreadedAnvilChunkStorage { - -// @ModifyArg(method = "save(Z)V", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;info(Ljava/lang/String;Ljava/lang/Object;)V", ordinal = 0, remap = false), index = 0) -// private String translated_reloadData(String string, Object p0) { -// return Text.translatable("text.translated_server.saved", p0).getString(); -// } -} diff --git a/src/main/resources/server_translations.mixin.json b/src/main/resources/server_translations.mixin.json index e516a8b..77e4020 100644 --- a/src/main/resources/server_translations.mixin.json +++ b/src/main/resources/server_translations.mixin.json @@ -8,7 +8,6 @@ "MixinMinecraftServer", "MixinRecipeManager", "MixinReloadableResourceManagerImpl", - "MixinThreadedAnvilChunkStorage", "MixinWorldGenerationProgressLogger" ], "injectors": {