aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/handlers
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2021-07-18 05:27:24 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2021-07-18 05:27:24 -0230
commit5559861e52a788f08bc48946a9aad6dd52b373bf (patch)
treef4caac982db914fca97527f8783d26d6703bec64 /src/main/java/com/thatgravyboat/skyblockhud/handlers
parentbaf3b8aa15cbd2dc0fcb4a80707557c44ee30c16 (diff)
downloadSkyblockHud-Death-Defied-5559861e52a788f08bc48946a9aad6dd52b373bf.tar.gz
SkyblockHud-Death-Defied-5559861e52a788f08bc48946a9aad6dd52b373bf.tar.bz2
SkyblockHud-Death-Defied-5559861e52a788f08bc48946a9aad6dd52b373bf.zip
Added texture styles
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/handlers')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/handlers/NpcDialogue.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/NpcDialogue.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/NpcDialogue.java
index 1f56526..0e7ccdc 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/NpcDialogue.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/NpcDialogue.java
@@ -1,13 +1,12 @@
package com.thatgravyboat.skyblockhud.handlers;
-import static com.thatgravyboat.skyblockhud.GuiTextures.dialogue;
-
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.thatgravyboat.skyblockhud.SkyblockHud;
import com.thatgravyboat.skyblockhud.Utils;
+import com.thatgravyboat.skyblockhud.textures.Textures;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
@@ -80,7 +79,7 @@ public class NpcDialogue implements IResourceManagerReloadListener {
public void renderOverlay(RenderGameOverlayEvent.Post event) {
if (Utils.overlayShouldRender(event.type, SkyblockHud.hasSkyblockScoreboard(), showDialogue, !SkyblockHud.config.misc.hideDialogueBox)) {
Minecraft mc = Minecraft.getMinecraft();
- mc.renderEngine.bindTexture(dialogue);
+ mc.renderEngine.bindTexture(Textures.texture.dialogue);
GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f);
int x = SkyblockHud.config.misc.dialoguePos.getAbsX(event.resolution, 182) - 91;
@@ -111,8 +110,8 @@ public class NpcDialogue implements IResourceManagerReloadListener {
public void onResourceManagerReload(IResourceManager resourceManager) {
NPCS.clear();
try {
- ResourceLocation trackers = new ResourceLocation("skyblockhud:data/npc_textures.json");
- InputStream is = resourceManager.getResource(trackers).getInputStream();
+ ResourceLocation npcs = new ResourceLocation("skyblockhud:data/npc_textures.json");
+ InputStream is = resourceManager.getResource(npcs).getInputStream();
try (BufferedReader reader = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8))) {
for (JsonElement npc : gson.fromJson(reader, JsonObject.class).getAsJsonArray("npcs")) {