aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
diff options
context:
space:
mode:
authorDoKM <54663875+DoKM@users.noreply.github.com>2021-08-20 19:08:34 +0200
committerGitHub <noreply@github.com>2021-08-20 19:08:34 +0200
commitf70f4bf3391376bbd29bcb53213326c17a52bc23 (patch)
tree6384c0dbb1f35a0dedac34482aa9da754cfb88e0 /src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
parent1f0af827fe5e89f40a3e052b60d93bae116f8b2d (diff)
parent8c6d02fc0f14b84fa69bfbe697ba00a53fbc19a3 (diff)
downloadnotenoughupdates-f70f4bf3391376bbd29bcb53213326c17a52bc23.tar.gz
notenoughupdates-f70f4bf3391376bbd29bcb53213326c17a52bc23.tar.bz2
notenoughupdates-f70f4bf3391376bbd29bcb53213326c17a52bc23.zip
Merge pull request #20 from DeDiamondPro/master
cleanup code + allow r to view recipe and u to view usages with virtual items in the crafting overlay
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
index aff030d8..2975115c 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
@@ -76,8 +76,6 @@ public class NEUManager {
public File repoLocation;
public File configFile;
- public CraftingOverlay craftingOverlay = new CraftingOverlay(this);
-
public NEUManager(NotEnoughUpdates neu, File configLocation) {
this.neu = neu;
this.configLocation = configLocation;
@@ -804,7 +802,7 @@ public class NEUManager {
if (item.has("recipe") && Minecraft.getMinecraft().thePlayer.openContainer instanceof ContainerChest) {
ContainerChest container = (ContainerChest) Minecraft.getMinecraft().thePlayer.openContainer;
if (container.getLowerChestInventory().getDisplayName().getUnformattedText().equals("Craft Item")) {
- craftingOverlay.updateItem(item);
+ CraftingOverlay.updateItem(item);
}
} else if(item.has("useneucraft") && item.get("useneucraft").getAsBoolean()) {
displayGuiItemRecipe(item.get("internalname").getAsString(), "");