aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/CraftableToggleButtonWidget.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-03-07 22:21:06 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-03-07 22:21:06 +0800
commit8cd1f1a9804f980c1666079c99bafb6330c77723 (patch)
tree449f74c31bf73a4106b2cb9bc7fb5635925b2328 /src/main/java/me/shedaniel/rei/gui/widget/CraftableToggleButtonWidget.java
parente5909b2fa40428d2a25a4f727a49a4f4fc47ad01 (diff)
downloadRoughlyEnoughItems-8cd1f1a9804f980c1666079c99bafb6330c77723.tar.gz
RoughlyEnoughItems-8cd1f1a9804f980c1666079c99bafb6330c77723.tar.bz2
RoughlyEnoughItems-8cd1f1a9804f980c1666079c99bafb6330c77723.zip
Config with comments
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/CraftableToggleButtonWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/CraftableToggleButtonWidget.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/CraftableToggleButtonWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/CraftableToggleButtonWidget.java
index 211f8a7f0..8006d5846 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/CraftableToggleButtonWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/CraftableToggleButtonWidget.java
@@ -41,14 +41,14 @@ public abstract class CraftableToggleButtonWidget extends ButtonWidget {
MinecraftClient.getInstance().getTextureManager().bindTexture(CHEST_GUI_TEXTURE);
GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);
this.zOffset = 100f;
- this.drawTexturedRect(getBounds().x, getBounds().y, (56 + (RoughlyEnoughItemsCore.getConfigHelper().craftableOnly() ? 0 : 20)), 202, 20, 20);
+ this.drawTexturedRect(getBounds().x, getBounds().y, (56 + (RoughlyEnoughItemsCore.getConfigManager().isCraftableOnlyEnabled() ? 0 : 20)), 202, 20, 20);
this.zOffset = 0f;
if (getBounds().contains(mouseX, mouseY))
drawTooltip();
}
private void drawTooltip() {
- GuiHelper.getLastOverlay().addTooltip(new QueuedTooltip(ClientHelper.getMouseLocation(), Arrays.asList(I18n.translate(RoughlyEnoughItemsCore.getConfigHelper().craftableOnly() ? "text.rei.showing_craftable" : "text.rei.showing_all"))));
+ GuiHelper.getLastOverlay().addTooltip(new QueuedTooltip(ClientHelper.getMouseLocation(), Arrays.asList(I18n.translate(RoughlyEnoughItemsCore.getConfigManager().isCraftableOnlyEnabled() ? "text.rei.showing_craftable" : "text.rei.showing_all"))));
}
}