Prevent the creation of useless tool parts (bow limb, xbow limb and arrowhead without respective stats for the material)

This commit is contained in:
Bernhard Bonigl committed 2014-12-26 11:03:28 +01:00
1 parent f3ba95bbea
commit 161c292462
2 files changed
+66

No files matched your search

@@ -178,6 +178,7 @@ public class TinkerToolEvents
@SubscribeEvent
public void craftPart (PartBuilderEvent.NormalPart event)
{
// bowstring
if (event.pattern.getItem() == TinkerTools.woodPattern && event.pattern.getItemDamage() == 23)
{
ItemStack result = craftBowString(event.material);
@@ -187,6 +188,7 @@ public class TinkerToolEvents
}
}
// fletching
if (event.pattern.getItem() == TinkerTools.woodPattern && event.pattern.getItemDamage() == 24)
{
ItemStack result = craftFletching(event.material);