From 7264d838a0e2e7535a8b175ef6651654443ef72f Mon Sep 17 00:00:00 2001 From: PepperBell <44146161+PepperCode1@users.noreply.github.com> Date: Sat, 3 Jul 2021 01:15:34 -0700 Subject: [PATCH] Remove another unnecessary override - Remove shouldCloseOnEsc override from AbstractSimiContainerScreen --- .../foundation/gui/AbstractSimiContainerScreen.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/gui/AbstractSimiContainerScreen.java b/src/main/java/com/simibubi/create/foundation/gui/AbstractSimiContainerScreen.java index b4a34a7db..fe7b26623 100644 --- a/src/main/java/com/simibubi/create/foundation/gui/AbstractSimiContainerScreen.java +++ b/src/main/java/com/simibubi/create/foundation/gui/AbstractSimiContainerScreen.java @@ -1,7 +1,5 @@ package com.simibubi.create.foundation.gui; -import static com.simibubi.create.foundation.gui.AllGuiTextures.PLAYER_INVENTORY; - import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -145,16 +143,10 @@ public abstract class AbstractSimiContainerScreen extends C return result | super.mouseReleased(x, y, button); } - @Override - public boolean shouldCloseOnEsc() { - return true; - } - protected abstract void renderWindow(MatrixStack ms, int mouseX, int mouseY, float partialTicks); @Override protected void drawBackground(MatrixStack p_230450_1_, float p_230450_2_, int p_230450_3_, int p_230450_4_) { - } protected void renderWindowForeground(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) { @@ -201,7 +193,7 @@ public abstract class AbstractSimiContainerScreen extends C } public void renderPlayerInventory(MatrixStack ms, int x, int y) { - PLAYER_INVENTORY.draw(ms, this, x, y); + AllGuiTextures.PLAYER_INVENTORY.draw(ms, this, x, y); textRenderer.draw(ms, playerInventory.getDisplayName(), x + 8, y + 6, 0x404040); }