From 1764648e4f536b2e6ac1b7d1cb3c3fb60e206b29 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 19 Mar 2020 04:22:55 +0800 Subject: remove old Rectangle Signed-off-by: shedaniel --- src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java') diff --git a/src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java b/src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java index 833ac6557..cb2047004 100644 --- a/src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java +++ b/src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java @@ -44,7 +44,7 @@ public final class PanelWidget extends Panel { private static final Identifier CHEST_GUI_TEXTURE_DARK = new Identifier("roughlyenoughitems", "textures/gui/recipecontainer_dark.png"); private static final PanelWidget TEMP = new PanelWidget(new Rectangle()); - private me.shedaniel.math.api.Rectangle bounds; + private Rectangle bounds; private int color = -1; private int innerColor = REIHelper.getInstance().isDarkThemeEnabled() ? -13750738 : -3750202; private int xTextureOffset = 0; @@ -57,11 +57,11 @@ public final class PanelWidget extends Panel { } public PanelWidget(@NotNull Rectangle bounds) { - this.bounds = new me.shedaniel.math.api.Rectangle(bounds); + this.bounds = Objects.requireNonNull(bounds); } public static void render(@NotNull Rectangle bounds, int color) { - TEMP.bounds.setBounds(bounds); + TEMP.bounds.setBounds(Objects.requireNonNull(bounds)); TEMP.color = color; TEMP.render(0, 0, 0); } @@ -118,7 +118,7 @@ public final class PanelWidget extends Panel { @NotNull @Override - public me.shedaniel.math.api.Rectangle getBounds() { + public Rectangle getBounds() { return bounds; } -- cgit