From 5c48b3169a54a52fddaf8c5e374e7fb690f52260 Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Thu, 29 Jun 2017 23:51:22 -0400 Subject: [PATCH] Fix config screens in 1.12+ --- .../infinitefluids/InfiniteFluidsGuiFactory.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/josephcsible/infinitefluids/InfiniteFluidsGuiFactory.java b/src/main/java/josephcsible/infinitefluids/InfiniteFluidsGuiFactory.java index a27bbfd..0bd24fd 100644 --- a/src/main/java/josephcsible/infinitefluids/InfiniteFluidsGuiFactory.java +++ b/src/main/java/josephcsible/infinitefluids/InfiniteFluidsGuiFactory.java @@ -59,4 +59,13 @@ public RuntimeOptionGuiHandler getHandlerFor(RuntimeOptionCategoryElement elemen return null; } + // TODO clean these 2 methods up when we switch to 1.12 MDK + public boolean hasConfigGui() { + return true; + } + + public GuiScreen createConfigGui(GuiScreen parentScreen) { + return new InfiniteFluidsGuiConfig(parentScreen); + } + }