diff options
| author | Madeleaan <70163122+Madeleaan@users.noreply.github.com> | 2024-08-08 09:35:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-08 17:35:38 +1000 |
| commit | 0c32a484cac42ff546b035b9e9d4086a6c4ee64d (patch) | |
| tree | ba6bf7d38f45317d5a0e19e3cfe482531370dedb | |
| parent | f945a3b959d0004e0ec3b34c9c8b8325a250698d (diff) | |
| download | notenoughupdates-0c32a484cac42ff546b035b9e9d4086a6c4ee64d.tar.gz notenoughupdates-0c32a484cac42ff546b035b9e9d4086a6c4ee64d.tar.bz2 notenoughupdates-0c32a484cac42ff546b035b9e9d4086a6c4ee64d.zip | |
Add a question mark to all the slots in equipment overlay (#1304)
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/overlays/EquipmentOverlay.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/EquipmentOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/EquipmentOverlay.java index 0d94cd1b..50f8c45d 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/EquipmentOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/EquipmentOverlay.java @@ -262,14 +262,16 @@ public class EquipmentOverlay { if (slot1 == null) { Minecraft.getMinecraft().getTextureManager().bindTexture(QUESTION_MARK); GlStateManager.color(1, 1, 1, 1); - Utils.drawTexturedRect(overlayLeft + 8, overlayTop + EQUIPMENT_SLOT_OFFSET_Y, 16, 16, GL11.GL_NEAREST); + for (int i = 0; i < 4; i++) { + Utils.drawTexturedRect(overlayLeft + 8, overlayTop + EQUIPMENT_SLOT_OFFSET_Y + 18 * i, 16, 16, GL11.GL_NEAREST); + } tooltipToDisplay = Lists.newArrayList( EnumChatFormatting.RED + "Warning", EnumChatFormatting.GREEN + "You need to open /equipment", EnumChatFormatting.GREEN + "to cache your armour" ); - if (Utils.isWithinRect(mouseX, mouseY, overlayLeft + 8, overlayTop + 8, 16, 16) + if (Utils.isWithinRect(mouseX, mouseY, overlayLeft + 8, overlayTop + 8, 16, 70) && NotEnoughUpdates.INSTANCE.config.customArmour.sendWardrobeCommand && Mouse.getEventButtonState() && Minecraft.getMinecraft().thePlayer.inventory.getItemStack() == null) { |
