aboutsummaryrefslogtreecommitdiff
path: root/GuiTest/src
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-08-04 20:54:56 +0300
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-08-04 20:54:56 +0300
commit26d373fcceeebe0065b7fb76904addb3bde6e2b5 (patch)
treea8bf68e9209dfa08135158747d23e8d0315d316b /GuiTest/src
parentfd45e13d7bbc14cde3aba99bcf1f9a5dc2bc26b1 (diff)
downloadLibGui-26d373fcceeebe0065b7fb76904addb3bde6e2b5.tar.gz
LibGui-26d373fcceeebe0065b7fb76904addb3bde6e2b5.tar.bz2
LibGui-26d373fcceeebe0065b7fb76904addb3bde6e2b5.zip
Revert "Make layout() client-only, add missing Environment(CLIENT) annotations to paint() overrides"
This reverts commit 0b3c68e0
Diffstat (limited to 'GuiTest/src')
-rw-r--r--GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java3
1 files changed, 1 insertions, 2 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 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);