diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-08-04 20:32:25 +0300 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-08-04 20:32:25 +0300 |
commit | 0b3c68e037c583bf573b24b68a97e56d21ccd17c (patch) | |
tree | 8a5142c72a4347564f1ec42e4fedb1e2a0ecb457 /GuiTest/src/main | |
parent | a4bb001575a802acebdbbeecb323e1949f8cdffe (diff) | |
download | LibGui-0b3c68e037c583bf573b24b68a97e56d21ccd17c.tar.gz LibGui-0b3c68e037c583bf573b24b68a97e56d21ccd17c.tar.bz2 LibGui-0b3c68e037c583bf573b24b68a97e56d21ccd17c.zip |
Make layout() client-only, add missing Environment(CLIENT) annotations to paint() overrides
Diffstat (limited to 'GuiTest/src/main')
-rw-r--r-- | GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 85ad3cd..813f316 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,7 +143,8 @@ 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); |