mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +00:00
Fix StartupQuery to run properly on dedicated server.. Closes #5649
Signed-off-by: cpw <[email protected]>
This commit is contained in:
5 files changed
+27
-23
No files matched your search
@@ -48,8 +48,8 @@ public enum SidedProvider
|
||||
()-> str->str),
|
||||
@SuppressWarnings("Convert2MethodRef") // need to not be methodrefs to avoid classloading all of StartupQuery's data (supplier is coming from StartupQuery)
|
||||
STARTUPQUERY(
|
||||
c->StartupQuery.QueryWrapper.clientQuery(c),
|
||||
s->StartupQuery.QueryWrapper.dedicatedServerQuery(s),
|
||||
c->StartupQuery.QueryWrapperClient.clientQuery(c),
|
||||
s->StartupQuery.QueryWrapperServer.dedicatedServerQuery(s),
|
||||
()-> { throw new UnsupportedOperationException(); });
|
||||
|
||||
private static Supplier<Minecraft> client;
|
||||
|
||||
Reference in new issue
Block a user