mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
Added the Forestry API
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user