Fix StartupQuery to run properly on dedicated server.. Closes #5649

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2019-03-30 14:46:30 -04:00
1 parent 37016ca77f
commit e0361047f7
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;