From 3cdfe0d7db4f84825101f7413e8204bdb56b5e95 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Sat, 25 Jan 2020 18:52:29 +0200 Subject: Add Environment(CLIENT) to NinePatch --- src/main/java/io/github/cottonmc/cotton/gui/client/NinePatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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> implements IdentifiableResourceReloadListener { public static final MetadataLoader INSTANCE = new MetadataLoader(); -- cgit