aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
diff options
context:
space:
mode:
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.java12
1 files changed, 2 insertions, 10 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 4b5d7423b..e1fe5da55 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.systems.RenderSystem;
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;
@@ -27,14 +27,6 @@ public class RecipeBaseWidget extends WidgetWithBounds {
this.bounds = bounds;
}
- public int getBlitOffset() {
- return this.blitOffset;
- }
-
- public void setBlitOffset(int offset) {
- this.blitOffset = offset;
- }
-
@Override
public Rectangle getBounds() {
return bounds;
@@ -53,7 +45,7 @@ public class RecipeBaseWidget extends WidgetWithBounds {
public void render(int mouseX, int mouseY, float delta) {
if (!isRendering())
return;
- RenderHelper.color4f(1.0F, 1.0F, 1.0F, 1.0F);
+ RenderSystem.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;