fix: Add dummy constructor for CraftBook5 support (Fixes #1334) (#1344)

Co-authored-by: NotMyFault <mc.cache@web.de>
This commit is contained in:
Pierre Maurice Schwang 2021-10-07 19:18:10 +02:00 committed by GitHub
parent e2924f4cba
commit 2eb6451810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.Component;
import com.sk89q.worldedit.util.formatting.text.renderer.TranslatableComponentRenderer; import com.sk89q.worldedit.util.formatting.text.renderer.TranslatableComponentRenderer;
import com.sk89q.worldedit.util.io.ResourceLoader; import com.sk89q.worldedit.util.io.ResourceLoader;
import com.sk89q.worldedit.util.io.file.ArchiveUnpacker;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
@ -96,6 +97,10 @@ public class TranslationManager {
this.resourceLoader = resourceLoader; this.resourceLoader = resourceLoader;
} }
public TranslationManager(ArchiveUnpacker archiveUnpacker, ResourceLoader resourceLoader) {
this(resourceLoader);
}
public void setDefaultLocale(Locale defaultLocale) { public void setDefaultLocale(Locale defaultLocale) {
this.defaultLocale = defaultLocale; this.defaultLocale = defaultLocale;
} }