fixed exploit
This commit is contained in:
parent
9a4006df27
commit
011a194dc6
@ -304,14 +304,16 @@ public class HolidayManager implements Listener
|
||||
if (Manager.GetGame() != null && !Manager.GetGame().IsAlive(event.getPlayer()))
|
||||
return;
|
||||
|
||||
if (!_active.contains(event.getClickedBlock()))
|
||||
return;
|
||||
|
||||
specialBlockBreak(event.getPlayer(), event.getClickedBlock());
|
||||
}
|
||||
|
||||
private void specialBlockBreak(Player player, final Block block)
|
||||
{
|
||||
if (!_active.contains(block))
|
||||
return;
|
||||
|
||||
_active.remove(block);
|
||||
|
||||
block.getWorld().playEffect(block.getLocation(), Effect.STEP_SOUND, type.getBlockType());
|
||||
block.setType(Material.AIR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user