SPIGOT-5531: Fix --universe option

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2020-01-22 10:36:35 +11:00
parent 460b4c2803
commit 5a7dc86cd2

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();