aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-02-14 23:50:46 +0800
committershedaniel <daniel@shedaniel.me>2020-02-14 23:51:17 +0800
commitd5b0fdacb01c916097f0ffa9006a8a28611c1edb (patch)
treea12f7468071d9a3241ff56ff15d6302239ee3818 /src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
parent265116a32e97a6bfaf5106f9230d241f9b68bf11 (diff)
downloadRoughlyEnoughItems-d5b0fdacb01c916097f0ffa9006a8a28611c1edb.tar.gz
RoughlyEnoughItems-d5b0fdacb01c916097f0ffa9006a8a28611c1edb.tar.bz2
RoughlyEnoughItems-d5b0fdacb01c916097f0ffa9006a8a28611c1edb.zip
Fix config button color and favorites cheating
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
index 3c06a510b..8ad36d700 100644
--- a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
+++ b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
@@ -175,9 +175,9 @@ public class ContainerScreenOverlay extends WidgetWithBounds {
Rectangle bounds = getBounds();
if (ClientHelper.getInstance().isCheating() && RoughlyEnoughItemsCore.hasOperatorPermission()) {
if (RoughlyEnoughItemsCore.hasPermissionToUsePackets())
- fill(bounds.x + 1, bounds.y + 1, bounds.getMaxX() - 1, bounds.getMaxY() - 1, 721354752);
+ fillGradient(bounds.x + 1, bounds.y + 1, bounds.getMaxX() - 1, bounds.getMaxY() - 1, 721354752, 721354752);
else
- fill(bounds.x + 1, bounds.y + 1, bounds.getMaxX() - 1, bounds.getMaxY() - 1, 1476440063);
+ fillGradient(bounds.x + 1, bounds.y + 1, bounds.getMaxX() - 1, bounds.getMaxY() - 1, 1476440063, 1476440063);
}
MinecraftClient.getInstance().getTextureManager().bindTexture(CHEST_GUI_TEXTURE);
RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);