Skip to content

Commit 2848ce0

Browse files
committed
Fix.
1 parent 5d65be8 commit 2848ce0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eternalcombat-plugin/src/main/java/com/eternalcode/combat/fight/blocker/SignEditingBlocker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public SignEditingBlocker(FightManager fightManager, PluginConfig config) {
2323
this.config = config;
2424
}
2525

26-
@EventHandler
26+
@EventHandler(ignoreCancelled = true)
2727
void onInteract(PlayerInteractEvent event) {
2828
if (!this.config.signEditing.disableSignEditingDuringCombat) {
2929
return;
@@ -48,7 +48,7 @@ void onInteract(PlayerInteractEvent event) {
4848
event.setUseInteractedBlock(Result.DENY);
4949

5050
ItemStack item = event.getItem();
51-
if (item != null && isEnderPearl(item.getType())) {
51+
if (item != null && isEnderPearl(item.getType()) && event.useItemInHand() != Result.DENY) {
5252
event.setUseItemInHand(Result.ALLOW);
5353
}
5454
}

0 commit comments

Comments
 (0)