Don't let destructor pearls work on mid chests in BR

This commit is contained in:
Spencer 2017-12-31 20:07:46 -05:00 committed by Alexander Meech
parent 64fc407c4e
commit 087640ce1a

View File

@ -221,8 +221,17 @@ public class PerkDestructor extends Perk
for (Block block : UtilBlock.getInRadius(proj.getLocation(), 4).keySet())
{
if (block.getType() == Material.AIR || block.getType() == Material.BEDROCK || block.getType() == Material.BARRIER || block.isLiquid())
if (block.getType() == Material.AIR || block.getType() == Material.BEDROCK || block.getType() == Material.BARRIER || block.isLiquid())
{
continue;
}
// Custom locs with id 54 = chests in BR
// Skip all mid chests from being affected
if (Manager.GetGame().WorldData.GetCustomLocs("54").contains(block.getLocation()))
{
continue;
}
//Event
PerkDestructorBlockEvent blockEvent = new PerkDestructorBlockEvent(player, block);