From 24b2a18a220d0909248b84157778004c8480e7e9 Mon Sep 17 00:00:00 2001 From: Marcel Konrad Date: Wed, 11 Apr 2018 14:22:32 +0200 Subject: [PATCH] Fixed modded gamerule translations --- .../worldhandler/gui/content/impl/ContentGamerules.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/exopandora/worldhandler/gui/content/impl/ContentGamerules.java b/src/main/java/exopandora/worldhandler/gui/content/impl/ContentGamerules.java index b1cddff..05f9ed0 100644 --- a/src/main/java/exopandora/worldhandler/gui/content/impl/ContentGamerules.java +++ b/src/main/java/exopandora/worldhandler/gui/content/impl/ContentGamerules.java @@ -53,6 +53,13 @@ public class ContentGamerules extends Content @Override public String translate(String key) { + String translated = I18n.format(key); + + if(!translated.equals(key)) + { + return translated; + } + return I18n.format("gui.worldhandler.gamerules.rule." + key); }