diff --git a/src/main/java/de/skate702/craftingkeys/config/GuiConfig.java b/src/main/java/de/skate702/craftingkeys/config/GuiConfig.java index 9b9be38..a4d0456 100644 --- a/src/main/java/de/skate702/craftingkeys/config/GuiConfig.java +++ b/src/main/java/de/skate702/craftingkeys/config/GuiConfig.java @@ -4,6 +4,7 @@ import de.skate702.craftingkeys.CraftingKeys; import de.skate702.craftingkeys.util.LanguageLocalizer; import de.skate702.craftingkeys.util.Logger; import net.minecraft.client.Minecraft; +import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.util.ResourceLocation; @@ -72,17 +73,16 @@ public class GuiConfig extends GuiScreen { //Setting up GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); drawDefaultBackground(); //drawWorldBackground(0); - //Title - drawCenteredString(fontRendererObj, LanguageLocalizer.localize("craftingkeys.config.title"), width / 2, height / 2 - 115, pureWhite.getRGB()); + drawCenteredString(fontRenderer, LanguageLocalizer.localize("craftingkeys.config.title"), width / 2, height / 2 - 115, pureWhite.getRGB()); // Info-text and fake line - drawCenteredString(fontRendererObj, LanguageLocalizer.localize("craftingkeys.config.description"), width / 2, height / 2 - 10, pureWhite.getRGB()); - drawCenteredString(fontRendererObj, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -", width / 2, height / 2 + 8, lightGray.getRGB()); + drawCenteredString(fontRenderer, LanguageLocalizer.localize("craftingkeys.config.description"), width / 2, height / 2 - 10, pureWhite.getRGB()); + drawCenteredString(fontRenderer, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -", width / 2, height / 2 + 8, lightGray.getRGB()); // Key Info - drawCenteredString(fontRendererObj, LanguageLocalizer.localize("craftingkeys.config.stack"), guiBasePosition + 130, height / 2 - 96, pureWhite.getRGB()); - drawCenteredString(fontRendererObj, LanguageLocalizer.localize("craftingkeys.config.drop"), guiBasePosition + 130, height / 2 - 58, pureWhite.getRGB()); + drawCenteredString(fontRenderer, LanguageLocalizer.localize("craftingkeys.config.stack"), guiBasePosition + 130, height / 2 - 96, pureWhite.getRGB()); + drawCenteredString(fontRenderer, LanguageLocalizer.localize("craftingkeys.config.drop"), guiBasePosition + 130, height / 2 - 58, pureWhite.getRGB()); //Draw line to let it look better drawHorizontalLine(guiBasePosition - 86, guiBasePosition + 85, height / 2 - 20, pureWhite.getRGB()); @@ -325,7 +325,7 @@ public class GuiConfig extends GuiScreen { } private void drawInfoString(int index, int posX, int posY) { - drawCenteredString(fontRendererObj, Keyboard.getKeyName(keyValues[index]), + drawCenteredString(fontRenderer, Keyboard.getKeyName(keyValues[index]), guiShowBasePosX + posX - 86, guiShowBasePosY + posY, highlight.getRGB()); } diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index 94eaf62..54969bb 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -3,10 +3,10 @@ "modid": "craftingkeys", "name": "Crafting Keys", "description": "Simple better crafting! Crafing Keys enables new inventory key-bindings to speed up your crafting.", -"version": "1.0.2", +"version": "1.0.2.1", "credits": "Based on the open-source InvTweaks-Mod. Thanks a lot!", -"mcversion": "1.7.10 - 1.10.*", +"mcversion": "1.7.10 - 1.12.2", "url": "http://craftingkeys.skate702.de", "authorList": [ "skate702 (sebinside)" ] } -] \ No newline at end of file +]