diff options
| author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-08-20 18:59:37 +0200 |
|---|---|---|
| committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-08-20 18:59:37 +0200 |
| commit | 0f2be33018c085c11d0f283fe91b291d5a5a197b (patch) | |
| tree | ee30e1ab8e0bb7f346f59a5e57be57c4fdbd7729 /src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java | |
| parent | c518e81a6e4165c1736414c2cf45a19bb5acb355 (diff) | |
| download | notenoughupdates-0f2be33018c085c11d0f283fe91b291d5a5a197b.tar.gz notenoughupdates-0f2be33018c085c11d0f283fe91b291d5a5a197b.tar.bz2 notenoughupdates-0f2be33018c085c11d0f283fe91b291d5a5a197b.zip | |
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(), ""); |
