3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

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

Co-authored-by: NotMyFault <mc.cache@web.de>
Dieser Commit ist enthalten in:
Pierre Maurice Schwang 2021-10-07 19:18:10 +02:00 committet von GitHub
Ursprung e2924f4cba
Commit 2eb6451810
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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;
} }