Shortbows

This commit is contained in:
mDiyo committed 2013-07-06 13:51:40 -07:00
1 parent 8313a49548
commit b40106b3e9
288 files changed
+2497 -758

No files matched your search

@@ -92,7 +92,7 @@ public class ModLapis extends ToolMod
updateModTag(tool, keyPair);
}
public void midStreamModify (ItemStack tool)
public void midStreamModify (ItemStack tool, ToolCore toolItem)
{
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
if (!tags.hasKey(key))
@@ -109,7 +109,9 @@ public class ModLapis extends ToolMod
updateModTag(tool, keyPair);
}
if (tool.getItem() instanceof Weapon)
List list = Arrays.asList(toolItem.toolCategories());
//return list.contains("weapon") || list.contains("harvest");
if (list.contains("weapon"))
{
if (keyPair[0] >= 350)
{
@@ -130,7 +132,8 @@ public class ModLapis extends ToolMod
addEnchantment(tool, Enchantment.looting, 1);
}
}
else
if (list.contains("harvest"))
{
if (keyPair[0] >= 350)
{