mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-19 20:00:05 +00:00
Merge pull request #1 from OneEyeMaker/1.7.10
Removed unnecessary NEI handler
This commit is contained in:
commit
bff7ce19d2
3 files changed
+1
-36
No files matched your search
@@ -13,6 +13,7 @@ hs_err_pid*
|
||||
runtime/
|
||||
out/
|
||||
.gradle/
|
||||
libs/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
-3
@@ -24,9 +24,6 @@ public class NEIStorageDrawersConfig implements IConfigureNEI
|
||||
public void loadConfig () {
|
||||
for (ItemStack stack : pendingHide)
|
||||
API.hideItem(stack);
|
||||
|
||||
API.registerRecipeHandler(new UpgradeItemRecipeHandler());
|
||||
|
||||
pendingHide.clear();
|
||||
loaded = true;
|
||||
}
|
||||
|
||||
-33
@@ -1,33 +0,0 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.integration.notenoughitems;
|
||||
|
||||
import codechicken.nei.recipe.ShapedRecipeHandler;
|
||||
import com.jaquadro.minecraft.storagedrawers.core.ModItems;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class UpgradeItemRecipeHandler extends ShapedRecipeHandler
|
||||
{
|
||||
@Override
|
||||
public void loadCraftingRecipes(String outputId, Object... results) {
|
||||
if (outputId.equals("item"))
|
||||
loadCraftingRecipes((ItemStack) results[0]);
|
||||
}
|
||||
|
||||
//@Override
|
||||
//public void loadCraftingRecipes (ItemStack result) {
|
||||
// ItemStack itemTemplate = new ItemStack(ModItems.upgradeTemplate);
|
||||
//List<ItemStack> sticks = OreDictionary.getOres("stickWood");
|
||||
//List<ItemStack> drawers = OreDictionary.getOres("drawerBasic");
|
||||
|
||||
//if (result.isItemEqual(itemTemplate)) {
|
||||
// arecipes.add(new CachedShapedRecipe(3, 3, new Object[] {
|
||||
// sticks, sticks, sticks,
|
||||
// sticks, drawers, sticks,
|
||||
// sticks, sticks, sticks
|
||||
//}, result));
|
||||
}
|
||||
//super.loadCraftingRecipes(result);
|
||||
//}
|
||||
//}
|
||||
Reference in new issue
Block a user