From 26d373fcceeebe0065b7fb76904addb3bde6e2b5 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Tue, 4 Aug 2020 20:54:56 +0300 Subject: Revert "Make layout() client-only, add missing Environment(CLIENT) annotations to paint() overrides" This reverts commit 0b3c68e0 --- .../src/main/java/io/github/cottonmc/test/client/TestClientGui.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'GuiTest/src/main/java/io') diff --git a/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java b/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java index 813f316..85ad3cd 100644 --- a/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java +++ b/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java @@ -143,8 +143,7 @@ public class TestClientGui extends LightweightGuiDescription { public void setColor(int col) { this.color = col; } - - @Environment(EnvType.CLIENT) + @Override public void paint(MatrixStack matrices, int x, int y, int mouseX, int mouseY) { ScreenDrawing.coloredRect(x, y, this.getWidth(), this.getHeight(), color); -- cgit