Fix soups being used when players walk on pressure plates
This commit is contained in:
parent
cc3ed60adc
commit
3dd0bb3e1c
@ -5,6 +5,7 @@ import org.bukkit.Material;
|
|||||||
import org.bukkit.Sound;
|
import org.bukkit.Sound;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
|
import org.bukkit.event.block.Action;
|
||||||
import org.bukkit.event.player.PlayerInteractEvent;
|
import org.bukkit.event.player.PlayerInteractEvent;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
@ -46,7 +47,7 @@ public class SoupAddon extends MiniPlugin
|
|||||||
if (!UtilGear.isMat(player.getItemInHand(), Material.MUSHROOM_SOUP))
|
if (!UtilGear.isMat(player.getItemInHand(), Material.MUSHROOM_SOUP))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (UtilBlock.usable(event.getClickedBlock()))
|
if (UtilBlock.usable(event.getClickedBlock()) || event.getAction() == Action.PHYSICAL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//Effect
|
//Effect
|
||||||
|
Loading…
Reference in New Issue
Block a user