diff options
| author | DoKM <54663875+DoKM@users.noreply.github.com> | 2021-08-20 19:08:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-20 19:08:34 +0200 |
| commit | f70f4bf3391376bbd29bcb53213326c17a52bc23 (patch) | |
| tree | 6384c0dbb1f35a0dedac34482aa9da754cfb88e0 /src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java | |
| parent | 1f0af827fe5e89f40a3e052b60d93bae116f8b2d (diff) | |
| parent | 8c6d02fc0f14b84fa69bfbe697ba00a53fbc19a3 (diff) | |
| download | notenoughupdates-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.java | 4 |
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(), ""); |
