From 3dd0bb3e1ce0fc391df2328afc39edf1c910e4ff Mon Sep 17 00:00:00 2001 From: Spencer Date: Thu, 28 Dec 2017 17:46:55 -0500 Subject: [PATCH] Fix soups being used when players walk on pressure plates --- .../src/nautilus/game/arcade/addons/SoupAddon.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/addons/SoupAddon.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/addons/SoupAddon.java index 4174f64ff..0b4f33698 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/addons/SoupAddon.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/addons/SoupAddon.java @@ -5,6 +5,7 @@ import org.bukkit.Material; import org.bukkit.Sound; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; +import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.plugin.java.JavaPlugin; @@ -46,7 +47,7 @@ public class SoupAddon extends MiniPlugin if (!UtilGear.isMat(player.getItemInHand(), Material.MUSHROOM_SOUP)) return; - if (UtilBlock.usable(event.getClickedBlock())) + if (UtilBlock.usable(event.getClickedBlock()) || event.getAction() == Action.PHYSICAL) return; //Effect