Merge 1.19.2 into 1.19.4

This commit is contained in:
embeddedt 2023-07-03 14:58:45 -04:00
commit 37d6f477c4
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
4 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,13 @@
{
"key.modernfix": "ModernFix",
"key.modernfix.config": "開啟設定介面",
"modernfix.jei_load": "正在載入 JEI這可能需要一點時間",
"modernfix.no_lazydfu": "沒有安裝 LazyDFU。如果 Minecraft 需要從舊版本更新遊戲資料,可能會出現明顯的延遲。",
"modernfix.config": "ModernFix 注入設定",
"modernfix.config.done_restart": "完成(需要重新啟動遊戲)",
"modernfix.option.on": "開啟",
"modernfix.option.off": "關閉",
"modernfix.config.not_default": "(已修改)",
"asynclocator.map.locating": "地圖(定位中...",
"asynclocator.map.none": "地圖(未找到附近的特徵)"
}

View File

@ -104,4 +104,4 @@ publishing {
repositories {
// Add repositories to publish to here.
}
}
}

View File

@ -9,7 +9,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(LootTables.class)
public class LootTableManagerMixin {
@Redirect(method = "*(Lnet/minecraft/server/packs/resources/ResourceManager;Lcom/google/common/collect/ImmutableMap$Builder;Lnet/minecraft/resources/ResourceLocation;Lcom/google/gson/JsonElement;)V",
at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;error(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V", remap = false))
at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;error(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V", remap = false), require = 0)
private void logWithoutStacktrace(Logger instance, String s, Object location, Object exc) {
instance.error(s + ": {}", location, exc.toString());
}

View File

@ -8,7 +8,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(RecipeManager.class)
public class RecipeManagerMixin {
@Redirect(method = "apply(Ljava/util/Map;Lnet/minecraft/server/packs/resources/ResourceManager;Lnet/minecraft/util/profiling/ProfilerFiller;)V", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;error(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V", remap = false))
@Redirect(method = "apply(Ljava/util/Map;Lnet/minecraft/server/packs/resources/ResourceManager;Lnet/minecraft/util/profiling/ProfilerFiller;)V", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;error(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V", remap = false), require = 0)
private void silenceException(Logger instance, String s, Object location, Object exc) {
instance.error(s + ": {}", location, exc.toString());
}