Fixed check on unbreakable blocks for Crusher ritual, added event for items draining the SN

This commit is contained in:
WayofTime 2014-11-06 21:25:53 -05:00
parent 42afd64e30
commit 40a45be05e
12 changed files with 293 additions and 16 deletions

View file

@ -109,6 +109,10 @@ public class RitualEffectCrushing extends RitualEffect
{
Block block = world.getBlock(x + i, y + j, z + k);
int meta = world.getBlockMetadata(x + i, y + j, z + k);
if(block.getBlockHardness(world, x + i, y + j, z + k) == -1)
{
continue;
}
if (block != null && !world.isAirBlock(x + i, y + j, z + k))
{