diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2020-10-25 03:38:00 +0800 |
---|---|---|
committer | Glease <4586901+Glease@users.noreply.github.com> | 2020-10-25 03:38:00 +0800 |
commit | 153ee9bf191586265d846c8f224e64f5fae0a18b (patch) | |
tree | 8d1464f9a710b95f26ab7d451d9d5c24ecb8fe69 /src/main/java/gregtech | |
parent | 87abc3b419dfe42fb1c0cf943deaeb2e3037e19c (diff) | |
download | GT5-Unofficial-153ee9bf191586265d846c8f224e64f5fae0a18b.tar.gz GT5-Unofficial-153ee9bf191586265d846c8f224e64f5fae0a18b.tar.bz2 GT5-Unofficial-153ee9bf191586265d846c8f224e64f5fae0a18b.zip |
Move the hide to proper place & use proper api
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech')
-rw-r--r-- | src/main/java/gregtech/common/items/GT_VolumetricFlask.java | 10 | ||||
-rw-r--r-- | src/main/java/gregtech/nei/NEI_GT_Config.java | 7 |
2 files changed, 5 insertions, 12 deletions
diff --git a/src/main/java/gregtech/common/items/GT_VolumetricFlask.java b/src/main/java/gregtech/common/items/GT_VolumetricFlask.java index 8fe075ad58..a7bd63f0a6 100644 --- a/src/main/java/gregtech/common/items/GT_VolumetricFlask.java +++ b/src/main/java/gregtech/common/items/GT_VolumetricFlask.java @@ -43,16 +43,6 @@ public class GT_VolumetricFlask extends GT_Generic_Item implements IFluidContain unlocalFlaskName = unlocalized; setMaxStackSize(16); setNoRepair(); - if (Loader.isModLoaded("NotEnoughItems")) { - hideItemInNEI(); - } - } - - @Optional.Method(modid = "NotEnoughItems") - private void hideItemInNEI() { - codechicken.nei.api.API.addItemFilter( - () -> aStack -> aStack.getItem() == this && this.getFluid(aStack) != null - ); } public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { diff --git a/src/main/java/gregtech/nei/NEI_GT_Config.java b/src/main/java/gregtech/nei/NEI_GT_Config.java index 36db6879db..8f6c0385b9 100644 --- a/src/main/java/gregtech/nei/NEI_GT_Config.java +++ b/src/main/java/gregtech/nei/NEI_GT_Config.java @@ -2,6 +2,7 @@ package gregtech.nei; import codechicken.nei.api.IConfigureNEI; import cpw.mods.fml.common.FMLCommonHandler; +import gregtech.api.enums.ItemList; import gregtech.api.util.GT_Recipe; public class NEI_GT_Config @@ -16,8 +17,10 @@ public class NEI_GT_Config new GT_NEI_DefaultHandler(tMap); } } - if(FMLCommonHandler.instance().getEffectiveSide().isClient()) - ALH=new GT_NEI_AssLineHandler(GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes); + if(FMLCommonHandler.instance().getEffectiveSide().isClient()) { + ALH = new GT_NEI_AssLineHandler(GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes); + codechicken.nei.api.API.addItemListEntry(ItemList.VOLUMETRIC_FLASK.get(1)); + } sIsAdded = true; } |