aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/Danker/features/loot/TrophyFishTracker.java9
-rw-r--r--src/main/java/me/Danker/utils/RenderUtils.java6
2 files changed, 10 insertions, 5 deletions
diff --git a/src/main/java/me/Danker/features/loot/TrophyFishTracker.java b/src/main/java/me/Danker/features/loot/TrophyFishTracker.java
index f9936f0..1098e4b 100644
--- a/src/main/java/me/Danker/features/loot/TrophyFishTracker.java
+++ b/src/main/java/me/Danker/features/loot/TrophyFishTracker.java
@@ -140,10 +140,11 @@ public class TrophyFishTracker {
ItemStack goldComplete = new ItemStack(Items.gold_ingot);
ItemStack diamondComplete = new ItemStack(Items.diamond);
- RenderUtils.renderItem(bronze ? bronzeComplete : incomplete, x, y - 2, scale / 1.3D);
- RenderUtils.renderItem(silver ? silverComplete : incomplete, x + 15, y - 2, scale / 1.3D);
- RenderUtils.renderItem(gold ? goldComplete : incomplete, x + 30, y - 2, scale / 1.3D);
- RenderUtils.renderItem(diamond ? diamondComplete : incomplete, x + 45, y - 2, scale / 1.3D);
+ // -116 hides behind chat + tab
+ RenderUtils.renderItem(bronze ? bronzeComplete : incomplete, x, y - 2, -116, scale / 1.3D);
+ RenderUtils.renderItem(silver ? silverComplete : incomplete, x + 15, y - 2, -116, scale / 1.3D);
+ RenderUtils.renderItem(gold ? goldComplete : incomplete, x + 30, y - 2, -116, scale / 1.3D);
+ RenderUtils.renderItem(diamond ? diamondComplete : incomplete, x + 45, y - 2, -116, scale / 1.3D);
}
}
diff --git a/src/main/java/me/Danker/utils/RenderUtils.java b/src/main/java/me/Danker/utils/RenderUtils.java
index f334b7a..e1ee261 100644
--- a/src/main/java/me/Danker/utils/RenderUtils.java
+++ b/src/main/java/me/Danker/utils/RenderUtils.java
@@ -388,12 +388,16 @@ public class RenderUtils {
}
public static void renderItem(ItemStack stack, int x, int y, double scale) {
+ renderItem(stack, x, y, 0, scale);
+ }
+
+ public static void renderItem(ItemStack stack, int x, int y, int z, double scale) {
GlStateManager.enableRescaleNormal();
RenderHelper.enableGUIStandardItemLighting();
GlStateManager.enableDepth();
GlStateManager.pushMatrix();
- GlStateManager.translate(x, y, 0);
+ GlStateManager.translate(x, y, z);
GlStateManager.scale(scale, scale, scale);
//Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(stack, 0, 0);
Minecraft.getMinecraft().getRenderItem().renderItemAndEffectIntoGUI(stack, 0, 0);