From d3c3945430fa30bfc765b70b4f1cb67bc2f600b1 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Sun, 31 Jan 2021 15:07:40 +0200 Subject: Fix renderBackground behaviour being hardcoded to super --- .../java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java | 2 +- .../io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java index 8fc53e1..28887cd 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java @@ -94,7 +94,7 @@ public class CottonClientScreen extends Screen implements TextHoverRendererScree } private void paint(MatrixStack matrices, int mouseX, int mouseY) { - super.renderBackground(matrices); + renderBackground(matrices); if (description!=null) { WPanel root = description.getRootPanel(); diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java index 370bb68..bfda748 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java @@ -251,7 +251,7 @@ public class CottonInventoryScreen extends Handl protected void drawBackground(MatrixStack matrices, float partialTicks, int mouseX, int mouseY) {} //This is just an AbstractContainerScreen thing; most Screens don't work this way. private void paint(MatrixStack matrices, int mouseX, int mouseY) { - super.renderBackground(matrices); + renderBackground(matrices); if (description!=null) { WPanel root = description.getRootPanel(); -- cgit