fixed exploit

This commit is contained in:
Cheese 2015-12-13 21:14:57 +11:00
parent 9a4006df27
commit 011a194dc6

View File

@ -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);