diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2021-01-31 15:07:40 +0200 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2021-01-31 15:07:40 +0200 |
commit | d3c3945430fa30bfc765b70b4f1cb67bc2f600b1 (patch) | |
tree | 439c7ed1100585b5370801980068db1cce67b631 /src/main | |
parent | 68924a2c1fa310556797ab68807b83e6f534b8fa (diff) | |
download | LibGui-d3c3945430fa30bfc765b70b4f1cb67bc2f600b1.tar.gz LibGui-d3c3945430fa30bfc765b70b4f1cb67bc2f600b1.tar.bz2 LibGui-d3c3945430fa30bfc765b70b4f1cb67bc2f600b1.zip |
Fix renderBackground behaviour being hardcoded to super
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java | 2 | ||||
-rw-r--r-- | src/main/java/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<T extends SyncedGuiDescription> 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(); |