Cancels default sign interaction event
All checks were successful
KnarCraft/PermissionSigns/pipeline/head This commit looks good

This commit is contained in:
Kristian Knarvik 2024-01-03 18:42:09 +01:00
parent 454689b9df
commit c288306cb3

View File

@ -53,6 +53,8 @@ public class SignListener implements Listener {
Sign sign = (Sign) block.getState();
if (event.getHand() == EquipmentSlot.HAND) {
// Cancel the interaction to avoid sign editing
event.setCancelled(true);
handleSignClick(sign, player, event.getAction(), event);
}
}