aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-01-25 18:52:29 +0200
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-01-25 18:52:29 +0200
commit3cdfe0d7db4f84825101f7413e8204bdb56b5e95 (patch)
treefa93a2f3a4c3f82a03069a2bb1ca3c9fe65b6df0 /src
parent9dc144d7fa87650c2ebfbf405e8358a0f4f5a685 (diff)
downloadLibGui-3cdfe0d7db4f84825101f7413e8204bdb56b5e95.tar.gz
LibGui-3cdfe0d7db4f84825101f7413e8204bdb56b5e95.tar.bz2
LibGui-3cdfe0d7db4f84825101f7413e8204bdb56b5e95.zip
Add Environment(CLIENT) to NinePatch
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/NinePatch.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/NinePatch.java b/src/main/java/io/github/cottonmc/cotton/gui/client/NinePatch.java
index aae8cf9..34a50b1 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/NinePatch.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/NinePatch.java
@@ -49,6 +49,7 @@ import java.util.*;
*
* @since 1.5.0
*/
+@Environment(EnvType.CLIENT)
public class NinePatch implements BackgroundPainter {
private final Identifier texture;
private final int cornerSize;
@@ -258,7 +259,6 @@ public class NinePatch implements BackgroundPainter {
}
}
- @Environment(EnvType.CLIENT)
public static class MetadataLoader extends SinglePreparationResourceReloadListener<Map<Identifier, Properties>> implements IdentifiableResourceReloadListener {
public static final MetadataLoader INSTANCE = new MetadataLoader();