From 18763ce744a0df099ca1ef6eb021e8f29a3cff10 Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Wed, 7 May 2014 18:38:28 -0700 Subject: [PATCH] Don't make bad ItemStacks This doesn't really fix the problem, just makes it not crash: http://openeye.openmods.info/crashes/35adb461482c017d9f2abe4fb770ea71 --- forestry_common/core/forestry/core/config/ForestryItem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forestry_common/core/forestry/core/config/ForestryItem.java b/forestry_common/core/forestry/core/config/ForestryItem.java index 376c02ff5..979eaf315 100755 --- a/forestry_common/core/forestry/core/config/ForestryItem.java +++ b/forestry_common/core/forestry/core/config/ForestryItem.java @@ -270,6 +270,8 @@ public enum ForestryItem { } public ItemStack getItemStack(int qty, int meta) { + if (item == null) + return null; return new ItemStack(item, qty, meta); } }