aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-07-09 01:25:51 +1000
committerGitHub <noreply@github.com>2024-07-08 17:25:51 +0200
commit688a288804cc355390561e48332c99e25c207f5d (patch)
treee05a28e4de11cf9031f685f7bcea94febf95232e /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
parentd929b60c6817be79a85513635a733384567217bd (diff)
downloadnotenoughupdates-688a288804cc355390561e48332c99e25c207f5d.tar.gz
notenoughupdates-688a288804cc355390561e48332c99e25c207f5d.tar.bz2
notenoughupdates-688a288804cc355390561e48332c99e25c207f5d.zip
Add Improvements to /neucustomize (#1200)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java8
1 files changed, 8 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 087365e0..d5ffc790 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
@@ -38,6 +38,7 @@ import io.github.moulberry.notenoughupdates.miscfeatures.CookieWarning;
import io.github.moulberry.notenoughupdates.miscfeatures.EnchantingSolvers;
import io.github.moulberry.notenoughupdates.miscfeatures.SunTzu;
import io.github.moulberry.notenoughupdates.miscgui.NeuSearchCalculator;
+import io.github.moulberry.notenoughupdates.miscgui.itemcustomization.GuiItemCustomize;
import io.github.moulberry.notenoughupdates.miscgui.pricegraph.GuiPriceGraph;
import io.github.moulberry.notenoughupdates.recipes.CraftingRecipe;
import io.github.moulberry.notenoughupdates.util.Calculator;
@@ -1249,6 +1250,13 @@ public class NEUOverlay extends Gui {
.replace("[Lvl {LVL}]", "")
.trim());
NotEnoughUpdates.INSTANCE.trySendCommand("/recipe " + displayName);
+ } else if (keyPressed == NotEnoughUpdates.INSTANCE.config.misc.neuCustomizeKeybind && itemstack.get() != null) {
+ String uuid = NEUManager.getUUIDFromNBT(itemstack.get().getTagCompound());
+ if (uuid != null) {
+ NotEnoughUpdates.INSTANCE.openGui = new GuiItemCustomize(itemstack.get(), uuid);
+ } else {
+ Utils.addChatMessage("§cThis item does not have an UUID, so it cannot be customized.");
+ }
}
}
}