forked from LogBlock/LogBlock
Allow tool use when the interact event is cancelled
This commit is contained in:
@@ -31,7 +31,7 @@ public class ToolListener implements Listener {
|
|||||||
handler = logblock.getCommandsHandler();
|
handler = logblock.getCommandsHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler
|
||||||
public void onPlayerInteract(PlayerInteractEvent event) {
|
public void onPlayerInteract(PlayerInteractEvent event) {
|
||||||
if (event.getMaterial() != null) {
|
if (event.getMaterial() != null) {
|
||||||
final Action action = event.getAction();
|
final Action action = event.getAction();
|
||||||
|
Reference in New Issue
Block a user