mirror of
https://github.com/GTNewHorizons/NotEnoughEnergistics.git
synced 2026-11-20 12:09:48 +00:00
Add the function of synchronously modifying ingredients
This commit is contained in:
1 parent
f69a663fce
commit
224456afb1
6 files changed
+127
-54
No files matched your search
@@ -7,6 +7,7 @@ import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.guihook.IContainerDrawHandler;
|
||||
import codechicken.nei.recipe.GuiRecipe;
|
||||
import codechicken.nei.recipe.IRecipeHandler;
|
||||
import com.github.vfyjxf.nee.config.NEEConfig;
|
||||
import com.github.vfyjxf.nee.utils.GuiUtils;
|
||||
import com.github.vfyjxf.nee.utils.Ingredient;
|
||||
import com.github.vfyjxf.nee.utils.IngredientTracker;
|
||||
@@ -73,7 +74,7 @@ public class NEEContainerDrawHandler implements IContainerDrawHandler {
|
||||
|
||||
@Override
|
||||
public void renderSlotOverlay(GuiContainer gui, Slot slot) {
|
||||
if (gui instanceof GuiRecipe) {
|
||||
if (NEEConfig.drawHighlight && gui instanceof GuiRecipe) {
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
GuiRecipe guiRecipe = (GuiRecipe) gui;
|
||||
GuiContainer firstGui = guiRecipe.firstGui;
|
||||
|
||||
Reference in new issue
Block a user