interacto!
This commit is contained in:
parent
6e67f34db1
commit
d318a5cf87
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user