Added the Forestry API

This commit is contained in:
WayofTime committed 2015-05-11 13:12:56 -04:00
1 parent 69aeb4a813
commit 2cc9d3a53a
202 files changed
+7108 -35

No files matched your search

@@ -91,11 +91,11 @@ public class SacrificialDagger extends Item
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
{
// if (this.canUseForSacrifice(stack))
// {
// player.setItemInUse(stack, this.getMaxItemUseDuration(stack));
// return stack;
// }
if (this.canUseForSacrifice(stack))
{
player.setItemInUse(stack, this.getMaxItemUseDuration(stack));
return stack;
}
if (!player.capabilities.isCreativeMode)
{
@@ -183,6 +183,11 @@ public class SacrificialDagger extends Item
for (int k = -2; k <= 1; k++)
{
tileEntity = world.getTileEntity(i + x, k + y, j + z);
if(tileEntity instanceof IBloodAltar)
{
return (IBloodAltar)tileEntity;
}
}
}
}