From 2eb64518103162a1c4a6d28786e9b86c7b0e4aa9 Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Thu, 7 Oct 2021 19:18:10 +0200 Subject: [PATCH] fix: Add dummy constructor for CraftBook5 support (Fixes #1334) (#1344) Co-authored-by: NotMyFault --- .../sk89q/worldedit/util/translation/TranslationManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/util/translation/TranslationManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/util/translation/TranslationManager.java index b49befe9d..11c8e1ff9 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/util/translation/TranslationManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/util/translation/TranslationManager.java @@ -26,6 +26,7 @@ import com.google.gson.reflect.TypeToken; import com.sk89q.worldedit.util.formatting.text.Component; import com.sk89q.worldedit.util.formatting.text.renderer.TranslatableComponentRenderer; import com.sk89q.worldedit.util.io.ResourceLoader; +import com.sk89q.worldedit.util.io.file.ArchiveUnpacker; import java.io.IOException; import java.io.InputStream; @@ -96,6 +97,10 @@ public class TranslationManager { this.resourceLoader = resourceLoader; } + public TranslationManager(ArchiveUnpacker archiveUnpacker, ResourceLoader resourceLoader) { + this(resourceLoader); + } + public void setDefaultLocale(Locale defaultLocale) { this.defaultLocale = defaultLocale; }