Skip to content

Commit

Permalink
Fixed leaf fletching dup
Browse files Browse the repository at this point in the history
  • Loading branch information
GraxRabble committed Sep 11, 2013
1 parent 5dc13cf commit 9e3830a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/tconstruct/blocks/logic/PartBuilderLogic.java
Expand Up @@ -61,6 +61,8 @@ public void tryBuildPart (int slotID)
if (!craftedTop && inventory[0] != null)
{
int value = PatternBuilder.instance.getPartValue(inventory[2]);
if (value == 0) /* hack to plug up future dups */
value = 2;
IPattern item = (IPattern) inventory[0].getItem();
int cost = item != null ? item.getPatternCost(inventory[0]) : 0;
if (value > 0 && cost > 0)
Expand Down
5 changes: 3 additions & 2 deletions src/tconstruct/common/TContent.java
Expand Up @@ -1143,7 +1143,8 @@ void registerMaterials()

TConstructRegistry.addBowstringMaterial(0, 2, new ItemStack(Item.silk), new ItemStack(bowstring, 1, 0), 1F, 1F, 1f); //String
TConstructRegistry.addFletchingMaterial(0, 2, new ItemStack(Item.feather), new ItemStack(fletching, 1, 0), 100F, 0F, 0.05F); //Feather
TConstructRegistry.addFletchingMaterial(1, 2, new ItemStack(Block.leaves), new ItemStack(fletching, 1, 1), 75F, 0F, 0.2F); //Leaves
for (int i = 0; i < 4; i++ )
TConstructRegistry.addFletchingMaterial(1, 2, new ItemStack(Block.leaves, 1, i), new ItemStack(fletching, 1, 1), 75F, 0F, 0.2F); //All four vanialla Leaves
TConstructRegistry.addFletchingMaterial(2, 2, new ItemStack(materials, 1, 1), new ItemStack(fletching, 1, 2), 100F, 0F, 0.12F); //Slime
TConstructRegistry.addFletchingMaterial(3, 2, new ItemStack(materials, 1, 17), new ItemStack(fletching, 1, 3), 100F, 0F, 0.12F); //BlueSlime

Expand Down Expand Up @@ -2320,4 +2321,4 @@ public int getBurnTime(ItemStack fuel)
return 26400;
return 0;
}
}
}

0 comments on commit 9e3830a

Please sign in to comment.