Don't let destructor pearls work on mid chests in BR
This commit is contained in:
parent
64fc407c4e
commit
087640ce1a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user