From d318a5cf87bf0aeba229efd5b8512f0ee61a020a Mon Sep 17 00:00:00 2001 From: Cheese Date: Mon, 7 Dec 2015 21:53:34 +1100 Subject: [PATCH] interacto! --- .../nautilus/game/arcade/managers/HolidayManager.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/HolidayManager.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/HolidayManager.java index cf3bbf215..eb60ba482 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/HolidayManager.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/HolidayManager.java @@ -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)