Init SkinProvider on Geyser startup

Prevents it from loading in the middle of the first Geyser player joining
This commit is contained in:
Camotoy 2022-01-30 17:06:45 -05:00
parent 2d28ba0cb5
commit da33811e3b
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
2 changed files with 6 additions and 0 deletions

View file

@ -62,6 +62,7 @@ import org.geysermc.geyser.session.GeyserSession;
import org.geysermc.geyser.session.SessionManager;
import org.geysermc.geyser.session.auth.AuthType;
import org.geysermc.geyser.skin.FloodgateSkinUploader;
import org.geysermc.geyser.skin.SkinProvider;
import org.geysermc.geyser.text.GeyserLocale;
import org.geysermc.geyser.text.MinecraftLocale;
import org.geysermc.geyser.translator.inventory.item.ItemTranslator;
@ -153,6 +154,7 @@ public class GeyserImpl implements GeyserApi {
ItemTranslator.init();
MessageTranslator.init();
MinecraftLocale.init();
SkinProvider.init();
start();

View file

@ -819,4 +819,8 @@ public class SkinProvider {
};
}
}
public static void init() {
// no-op
}
}