SPIGOT-5531: Fix --universe option

This commit is contained in:
md_5 2020-01-22 10:36:35 +11:00
parent 8160e299d0
commit 29737ccbd2

View File

@ -597,7 +597,7 @@
DispenserRegistry.init();
DispenserRegistry.c();
- String s = (String) optionset.valueOf(optionspec8);
+ String s = (String) optionset.valueOf("universe"); // CraftBukkit
+ File s = (File) optionset.valueOf("universe"); // CraftBukkit
YggdrasilAuthenticationService yggdrasilauthenticationservice = new YggdrasilAuthenticationService(Proxy.NO_PROXY, UUID.randomUUID().toString());
MinecraftSessionService minecraftsessionservice = yggdrasilauthenticationservice.createMinecraftSessionService();
GameProfileRepository gameprofilerepository = yggdrasilauthenticationservice.createProfileRepository();