IMCs to add items to the partbuilder

This commit is contained in:
Bernhard Bonigl committed 2014-09-22 18:10:58 +02:00
1 parent e7a2fb54e2
commit c006610fea
2 files changed
+81 -3

No files matched your search

@@ -81,7 +81,7 @@ public class PatternBuilder
else
{
if (patternValue % 2 == 1)
if (patternValue % 2 == 1 && mat.shard != null)
{
return new ItemStack[] { toolPart, mat.shard.copy() }; // Material
// +
@@ -169,7 +169,7 @@ public class PatternBuilder
public ItemStack getShardFromSet (String materialset)
{
MaterialSet set = (MaterialSet) materialSets.get(materialset);
if (set != null)
if (set != null && set.shard != null)
return set.shard.copy();
return null;
}