diff options
| author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2023-06-23 11:56:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-23 19:56:32 +1000 |
| commit | 6cafb6fd76c0ac5ca7be4371eb2bba5f719be4f4 (patch) | |
| tree | 1ff94f3a172a8e0f591ecec2b23afc855862c661 /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | |
| parent | b2dd1dd2dcd220a67c1b91d1affe5d993388b22c (diff) | |
| download | notenoughupdates-6cafb6fd76c0ac5ca7be4371eb2bba5f719be4f4.tar.gz notenoughupdates-6cafb6fd76c0ac5ca7be4371eb2bba5f719be4f4.tar.bz2 notenoughupdates-6cafb6fd76c0ac5ca7be4371eb2bba5f719be4f4.zip | |
Various rift related changes (#724)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java index c6f0785d..f7f0049f 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java @@ -1150,6 +1150,8 @@ public class NEUOverlay extends Gui { } else if (keyPressed == manager.keybindViewRecipe.getKeyCode()) { manager.showRecipe(item); return true; + } else if (keyPressed == NotEnoughUpdates.INSTANCE.config.misc.keybindWaypoint && NotEnoughUpdates.INSTANCE.navigation.isValidWaypoint(item)) { + NotEnoughUpdates.INSTANCE.navigation.trackWaypoint(item); } else if (keyPressed == manager.keybindGive.getKeyCode()) { if (Minecraft.getMinecraft().thePlayer.capabilities.isCreativeMode) { Minecraft.getMinecraft().thePlayer.inventory.addItemStackToInventory( @@ -2222,12 +2224,16 @@ public class NEUOverlay extends Gui { (json.has("clickcommand") && !json.get("clickcommand").getAsString().isEmpty()) || !manager.getAvailableRecipesFor(internalname).isEmpty(); boolean hasInfo = json.has("info") && json.get("info").getAsJsonArray().size() > 0; + boolean hasWaypoint = NotEnoughUpdates.INSTANCE.navigation.isValidWaypoint(json); if (hasClick || hasInfo) text.add(""); if (hasClick) text.add(EnumChatFormatting.YELLOW.toString() + EnumChatFormatting.BOLD + "LMB/R : View recipe!"); if (hasInfo) text.add(EnumChatFormatting.YELLOW.toString() + EnumChatFormatting.BOLD + "RMB : View additional information!"); + if (hasWaypoint) + text.add(EnumChatFormatting.YELLOW.toString() + EnumChatFormatting.BOLD + + Keyboard.getKeyName(NotEnoughUpdates.INSTANCE.config.misc.keybindWaypoint) + " : Set waypoint!"); textToDisplay = text; } |
