mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 22:34:33 +00:00
Don't make bad ItemStacks
This doesn't really fix the problem, just makes it not crash: http://openeye.openmods.info/crashes/35adb461482c017d9f2abe4fb770ea71
This commit is contained in:
1 parent
27b3dedd1a
commit
18763ce744
1 file changed
+2
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user