aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
diff options
context:
space:
mode:
authorDanielshe <shekwancheung0528@gmail.com>2019-08-25 20:58:00 +0800
committerDanielshe <shekwancheung0528@gmail.com>2019-08-25 20:58:00 +0800
commitb960e33306056c126c3816ec471c58c3b5a7be7f (patch)
treeb0ac4730b813a6a0004250cd50e0cabd1eb3f18e /src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
parentc980df4f05485ef2a1adb768087bb95eeeadcfca (diff)
downloadRoughlyEnoughItems-b960e33306056c126c3816ec471c58c3b5a7be7f.tar.gz
RoughlyEnoughItems-b960e33306056c126c3816ec471c58c3b5a7be7f.tar.bz2
RoughlyEnoughItems-b960e33306056c126c3816ec471c58c3b5a7be7f.zip
Updated on Cloth, support for 1.15
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
index 821e6ffbe..4b5d7423b 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
@@ -5,8 +5,8 @@
package me.shedaniel.rei.gui.widget;
-import com.mojang.blaze3d.platform.GlStateManager;
import me.shedaniel.math.api.Rectangle;
+import me.shedaniel.math.compat.RenderHelper;
import me.shedaniel.rei.RoughlyEnoughItemsCore;
import me.shedaniel.rei.gui.config.RecipeScreenType;
import me.shedaniel.rei.impl.ScreenHelper;
@@ -53,7 +53,7 @@ public class RecipeBaseWidget extends WidgetWithBounds {
public void render(int mouseX, int mouseY, float delta) {
if (!isRendering())
return;
- GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);
+ RenderHelper.color4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiLighting.disable();
minecraft.getTextureManager().bindTexture(ScreenHelper.isDarkModeEnabled() ? CHEST_GUI_TEXTURE_DARK : CHEST_GUI_TEXTURE);
int x = bounds.x, y = bounds.y, width = bounds.width, height = bounds.height;