Make Replay Viewer button work with CustomMainMenu (fixes #195)

This commit is contained in:
Jonas Herzig
2020-05-24 13:19:57 +02:00
parent ef79331037
commit fabe4783c8

View File

@@ -219,6 +219,13 @@ public class GuiHandler extends EventRegistrations {
I18n.translate("replaymod.gui.replayviewer"), I18n.translate("replaymod.gui.replayviewer"),
this::onButton this::onButton
); );
//#if FABRIC<=0
//$$ if (guiScreen.getClass().getName().endsWith("custommainmenu.gui.GuiFakeMain")) {
//$$ // CustomMainMenu uses a different list in the event than in its Fake gui
//$$ addButton(event, button);
//$$ return;
//$$ }
//#endif
addButton(guiScreen, button); addButton(guiScreen, button);
} }