Fix notice screen back buttons not being hooked up

This commit is contained in:
Jonas Herzig
2019-06-14 16:54:42 +02:00
parent a840cadfb7
commit d15fa6a3f9
4 changed files with 4 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ public class GuiRenderQueue extends AbstractGuiPopup<GuiRenderQueue> {
LOGGER.error("Rendering video:", e);
NoticeScreen errorScreen = new NoticeScreen(
//#if MC>=11400
() -> {},
container::display,
new TranslatableComponent("replaymod.gui.rendering.error.title"),
new TranslatableComponent("replaymod.gui.rendering.error.message")
//#else

View File

@@ -239,7 +239,7 @@ public class GuiRenderSettings extends GuiScreen implements Closeable {
LOGGER.error("Rendering video:", e);
NoticeScreen errorScreen = new NoticeScreen(
//#if MC>=11400
() -> {},
GuiRenderSettings.this::display,
new TranslatableComponent("replaymod.gui.rendering.error.title"),
new TranslatableComponent("replaymod.gui.rendering.error.message")
//#else

View File

@@ -460,7 +460,7 @@ public class FullReplaySender extends ChannelDuplexHandler implements ReplaySend
}
mc.openScreen(new NoticeScreen(
//#if MC>=11400
() -> {},
() -> mc.openScreen(null),
new TranslatableComponent("replaymod.error.unknownrestriction1"),
new TranslatableComponent("replaymod.error.unknownrestriction2", unknown)
//#else

View File

@@ -143,7 +143,7 @@ public class GuiReplayViewer extends GuiScreen {
e.printStackTrace();
getMinecraft().openScreen(new NoticeScreen(
//#if MC>=11400
() -> {},
GuiReplayViewer.this::display,
new TranslatableComponent("replaymod.gui.viewer.delete.failed1"),
new TranslatableComponent("replaymod.gui.viewer.delete.failed2")
//#else