From 800bb287aea4a44ab8b447270a812f045b204c1b Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Sun, 11 Jun 2017 12:18:36 -0400 Subject: [PATCH] Add 1.12 compatibility --- build.gradle | 3 ++- .../java/com/tterrag/blur/config/BlurGuiFactory.java | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 231eb48..42ae863 100644 --- a/build.gradle +++ b/build.gradle @@ -110,12 +110,13 @@ curseforge { changelogType = 'html' changelog = System.getenv('CHANGELOG') if (changelog == null || 'none'.equals(changelog)) { - changelog = getChangelog() + changelog = getChangelog() ?: '' changelogType = 'text' } releaseType = project.release_type addGameVersion '1.9.4' addGameVersion '1.11.2' + addGameVersion '1.12' mainArtifact(jar) { displayName = "Blur ${mod_version}" } diff --git a/src/main/java/com/tterrag/blur/config/BlurGuiFactory.java b/src/main/java/com/tterrag/blur/config/BlurGuiFactory.java index 4298312..f8bdf1f 100644 --- a/src/main/java/com/tterrag/blur/config/BlurGuiFactory.java +++ b/src/main/java/com/tterrag/blur/config/BlurGuiFactory.java @@ -27,4 +27,15 @@ public class BlurGuiFactory implements IModGuiFactory { return null; } +// 1.12 +// @Override + public boolean hasConfigGui() { + return true; + } + +// 1.12 +// @Override + public GuiScreen createConfigGui(GuiScreen parentScreen) { + return new BlurConfigGui(parentScreen); + } }