diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-08-16 22:50:00 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-08-16 22:50:00 +0200 |
commit | c14ea38372c30d40820a7bcb7c8f56d407d7022f (patch) | |
tree | 37fdc4d1cb607fddbc7881e0976e6909d43cccd0 /src/main | |
parent | 00d03d913dcfbc73e839bf61981ff9926c9f46ce (diff) | |
download | NotEnoughUpdates-c14ea38372c30d40820a7bcb7c8f56d407d7022f.tar.gz NotEnoughUpdates-c14ea38372c30d40820a7bcb7c8f56d407d7022f.tar.bz2 NotEnoughUpdates-c14ea38372c30d40820a7bcb7c8f56d407d7022f.zip |
fix double tooltips
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/overlays/CraftingOverlay.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/CraftingOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/CraftingOverlay.java index ecc88ccc..8640fd0e 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/CraftingOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/CraftingOverlay.java @@ -42,11 +42,10 @@ public class CraftingOverlay { int y = slot.yDisplayPosition + gc.guiTop; if (!slot.getHasStack() || !manager.getInternalNameForItem(items[i]).equals(manager.getInternalNameForItem(slot.getStack())) || slot.getStack().stackSize < items[i].stackSize) - Gui.drawRect(x, y, - x + 16, y + 16, 0x64ff0000); + Gui.drawRect(x, y, x + 16, y + 16, 0x64ff0000); if (!slot.getHasStack()) Utils.drawItemStack(items[i], x, y); - if (mouseX >= x && mouseX < x + 16 && mouseY >= y && mouseY < y + 16) + if (!slot.getHasStack() && mouseX >= x && mouseX < x + 16 && mouseY >= y && mouseY < y + 16) tooltip = items[i].getTooltip(Minecraft.getMinecraft().thePlayer, false); } } |