Implement a GUI packet and GUIFACTORY for triggering from the server.

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2019-02-13 21:06:39 -05:00
1 parent 31c0a70f8e
commit 586c24f9d6
12 files changed
+98 -74

No files matched your search

@@ -33,6 +33,6 @@ public class ConfigGuiHandler
public static Optional<BiFunction<Minecraft, GuiScreen, GuiScreen>> getGuiFactoryFor(ModInfo selectedMod)
{
return ModList.get().getModContainerById(selectedMod.getModId()).
flatMap(mc -> mc.getCustomExtension(ExtensionPoint.GUIFACTORY));
flatMap(mc -> mc.getCustomExtension(ExtensionPoint.CONFIGGUIFACTORY));
}
}