mirror of
https://github.com/songoda/EpicAnchors.git
synced 2024-10-31 23:59:35 +01:00
Better interact handling
This commit is contained in:
parent
3b5ccc4690
commit
0dc4558a45
@ -24,8 +24,9 @@ public class InteractListeners implements Listener {
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
public void onBlockInteract(PlayerInteractEvent e) {
|
||||
if (e.getClickedBlock() == null) return;
|
||||
if (e.getAction() != Action.RIGHT_CLICK_BLOCK) {
|
||||
instance.bust(e.getClickedBlock().getLocation());
|
||||
e.setCancelled(true);
|
||||
|
Loading…
Reference in New Issue
Block a user