aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-03-06 04:18:21 +0800
committershedaniel <daniel@shedaniel.me>2020-03-06 04:18:21 +0800
commit12223ae029f3d206ebb19ba0cd134e3c36827315 (patch)
tree85c1743dfb0855aef23855a92240279a0a019eec /src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java
parent2bf1e9f370a4c52a61575f0405425a51c670abed (diff)
downloadRoughlyEnoughItems-12223ae029f3d206ebb19ba0cd134e3c36827315.tar.gz
RoughlyEnoughItems-12223ae029f3d206ebb19ba0cd134e3c36827315.tar.bz2
RoughlyEnoughItems-12223ae029f3d206ebb19ba0cd134e3c36827315.zip
3.0.7
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java
index ec4912a8c..06c80b5cd 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java
@@ -26,6 +26,7 @@ package me.shedaniel.rei.gui.widget;
import com.mojang.blaze3d.systems.RenderSystem;
import me.shedaniel.math.api.Point;
import me.shedaniel.math.api.Rectangle;
+import me.shedaniel.rei.api.REIHelper;
import me.shedaniel.rei.impl.ScreenHelper;
import net.minecraft.client.gui.Element;
import net.minecraft.client.sound.PositionedSoundInstance;
@@ -116,7 +117,7 @@ public abstract class ButtonWidget extends WidgetWithBounds {
}
protected void renderBackground(int x, int y, int width, int height, int textureOffset) {
- minecraft.getTextureManager().bindTexture(ScreenHelper.isDarkModeEnabled() ? BUTTON_LOCATION_DARK : BUTTON_LOCATION);
+ minecraft.getTextureManager().bindTexture(REIHelper.getInstance().isDarkThemeEnabled() ? BUTTON_LOCATION_DARK : BUTTON_LOCATION);
RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
RenderSystem.enableBlend();
RenderSystem.blendFuncSeparate(770, 771, 1, 0);