interacto!

This commit is contained in:
Cheese 2015-12-07 21:53:34 +11:00
parent 6e67f34db1
commit d318a5cf87

View File

@ -293,18 +293,21 @@ public class HolidayManager implements Listener
}
@EventHandler
public void specialBlockDamage(BlockDamageEvent event)
public void specialBlockDamage(PlayerInteractEvent event)
{
if (!UtilEvent.isAction(event, ActionType.L_BLOCK))
return;
if (UtilPlayer.isSpectator(event.getPlayer()))
return;
if (Manager.GetGame() != null && !Manager.GetGame().IsAlive(event.getPlayer()))
return;
if (!_active.contains(event.getBlock()))
if (!_active.contains(event.getClickedBlock()))
return;
specialBlockBreak(event.getPlayer(), event.getBlock());
specialBlockBreak(event.getPlayer(), event.getClickedBlock());
}
private void specialBlockBreak(Player player, final Block block)