mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 04:32:26 +00:00
IMCs to add items to the partbuilder
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user