mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-25 22:44:36 +00:00
Extract inventory and missing ingredient helpers (#1164)
This commit is contained in:
1 parent
cdc8e22aec
commit
bdadcc37a6
8 files changed
+75
-67
No files matched your search
@@ -36,6 +36,7 @@ import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import codechicken.lib.gui.GuiDraw;
|
||||
import codechicken.nei.ItemStackAmount;
|
||||
import codechicken.nei.KeyManager;
|
||||
import codechicken.nei.LRUCache;
|
||||
import codechicken.nei.NEICPH;
|
||||
@@ -60,7 +61,6 @@ import codechicken.nei.guihook.IGuiClientSide;
|
||||
import codechicken.nei.guihook.IGuiHandleMouseWheel;
|
||||
import codechicken.nei.guihook.IGuiHotkeyListener;
|
||||
import codechicken.nei.recipe.AcceptsFollowingTooltipLineHandler;
|
||||
import codechicken.nei.recipe.AutoCraftingManager;
|
||||
import codechicken.nei.recipe.GuiCraftingRecipe;
|
||||
import codechicken.nei.recipe.GuiOverlayButton;
|
||||
import codechicken.nei.recipe.GuiRecipe;
|
||||
@@ -284,10 +284,8 @@ public class GuiCraftingTree extends GuiContainer implements INEIGuiHandler, IGu
|
||||
final GuiContainer firstGui = getFirstScreen();
|
||||
|
||||
if (firstGui != null) {
|
||||
for (ItemStack stack : AutoCraftingManager.getInventoryItems(firstGui).values()) {
|
||||
if (stack != null) {
|
||||
this.math.initialItems.add(BookmarkItem.of(-1, stack));
|
||||
}
|
||||
for (ItemStack stack : ItemStackAmount.of(firstGui).values()) {
|
||||
this.math.initialItems.add(BookmarkItem.of(-1, stack));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user