Materials that shall have toolparts created for them have to be registered specifically now. Registering a material via IMC does so automatically. Should also fix the double-toolparts with extratic and other mod relying on the 1.6 API.

This commit is contained in:
Bernhard Bonigl committed 2014-10-15 23:17:41 +02:00
1 parent c824f68b79
commit c0e46f151b
4 files changed
+36 -2

No files matched your search

@@ -98,8 +98,11 @@ public class DynamicToolPart extends CraftingItem implements IToolPart
return;
// material id == metadata
for(Integer matID : TConstructRegistry.toolMaterials.keySet())
list.add(new ItemStack(item, 1, matID));
for(Integer matID : TConstructRegistry.defaultToolPartMaterials) {
ItemStack stack = new ItemStack(item, 1, matID);
if (this.getMaterialID(stack) != -1)
list.add(stack);
}
}
@Override