Fixed check on unbreakable blocks for Crusher ritual, added event for items draining the SN
This commit is contained in:
parent
42afd64e30
commit
40a45be05e
12 changed files with 293 additions and 16 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue