diff options
| author | ThatGravyBoat <ThatGravyBoat@users.noreply.github.com> | 2021-07-18 07:58:09 +0000 |
|---|---|---|
| committer | GitHub Action <actions@github.com> | 2021-07-18 07:58:09 +0000 |
| commit | ccbaac36b14d52f072287775ba55bedb1131beb9 (patch) | |
| tree | 92604e6451b48e462abaf4ac4d00cce9f939ab96 /src/main/java/com/thatgravyboat/skyblockhud/textures/Textures.java | |
| parent | 5559861e52a788f08bc48946a9aad6dd52b373bf (diff) | |
| download | SkyHanni-ccbaac36b14d52f072287775ba55bedb1131beb9.tar.gz SkyHanni-ccbaac36b14d52f072287775ba55bedb1131beb9.tar.bz2 SkyHanni-ccbaac36b14d52f072287775ba55bedb1131beb9.zip | |
Prettified Code!
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/textures/Textures.java')
| -rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/textures/Textures.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/textures/Textures.java b/src/main/java/com/thatgravyboat/skyblockhud/textures/Textures.java index 61b19b74c..871c14505 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/textures/Textures.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/textures/Textures.java @@ -16,13 +16,14 @@ import net.minecraft.client.resources.IResourceManagerReloadListener; import net.minecraft.util.ResourceLocation; public class Textures implements IResourceManagerReloadListener { + private static final TextureObject DEFAULT_TEXTURE = new TextureObject("Default"); private static final Gson gson = new GsonBuilder().create(); public static final List<TextureObject> styles = Lists.newArrayList(DEFAULT_TEXTURE); public static TextureObject texture = DEFAULT_TEXTURE; - public static void setTexture(int selected){ + public static void setTexture(int selected) { if (selected >= styles.size() || selected < 0) { texture = DEFAULT_TEXTURE; SkyblockHud.config.misc.style = 0; @@ -45,5 +46,4 @@ public class Textures implements IResourceManagerReloadListener { } } catch (Exception ignored) {} } - } |
