From 25bfa1d08f9618a83a3fcee27f71ac924b5d8754 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 6 Jan 2021 15:43:22 +0900 Subject: A --- src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java | 2 +- .../java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java | 2 +- .../kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonDeaths.java | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java index 192ad10c..947b4dc7 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java @@ -41,7 +41,7 @@ public abstract class GuiFeature extends AbstractFeature implements ScreenRender public void drawScreen(float partialTicks) { if (!isEnabled()) return; GL11.glPushMatrix(); -// GL11.glColor4f(1,1,1,1); + GlStateManager.color(1,1,1,1); GlStateManager.disableFog(); GlStateManager.disableLighting(); clip(new ScaledResolution(Minecraft.getMinecraft()), featureRect.x, featureRect.y, featureRect.width, featureRect.height); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java index 041c0afc..517b668b 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java @@ -48,7 +48,7 @@ public class FeatureChestPrice extends SimpleFeature implements GuiBackgroundRen if (item != null) { if (item.getDisplayName() != null && item.getDisplayName().contains("Reward")) { NBTTagCompound tagCompound = item.serializeNBT().getCompoundTag("tag"); - if (tagCompound.hasKey("display", 10)) { + if (tagCompound != null && tagCompound.hasKey("display", 10)) { NBTTagCompound nbttagcompound = tagCompound.getCompoundTag("display"); if (nbttagcompound.getTagId("Lore") == 9) { diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonDeaths.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonDeaths.java index ff3be74b..697d42eb 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonDeaths.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonDeaths.java @@ -71,7 +71,6 @@ public class FeatureDungeonDeaths extends GuiFeature implements ChatListener { @Override public void onChat(ClientChatReceivedEvent clientChatReceivedEvent) { if (clientChatReceivedEvent.type == 2) return; - System.out.println("HUH"); if (!skyblockStatus.isOnDungeon()) return; DungeonContext context = skyblockStatus.getContext(); if (context == null) return; -- cgit