Skip to content

Commit

Permalink
Fix sign issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Sep 10, 2024
1 parent 82d7cd5 commit b4483d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
}

group = "com.snowleopard"
version = "3.0.0_beta-3"
version = "3.0.0_beta-4"
description = "APTurrets"
java.toolchain.languageVersion = JavaLanguageVersion.of(21)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.jetbrains.annotations.NotNull;

public class PlayerInteractListener implements Listener {
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = false)
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
public void onClick(@NotNull PlayerInteractEvent event) {
event.setCancelled(switch (event.getAction()) {
case RIGHT_CLICK_AIR -> rightClick(event);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.SignChangeEvent;
import org.jetbrains.annotations.NotNull;

public class SignChangeListener implements Listener {
@EventHandler
public void eventSignChanged(SignChangeEvent event) {
public void eventSignChanged(@NotNull SignChangeEvent event) {
if (!ChatColor.stripColor(event.getLine(0)).equalsIgnoreCase("Mounted")
|| !ChatColor.stripColor(event.getLine(1)).equalsIgnoreCase("Gun"))
return;
Expand Down

0 comments on commit b4483d9

Please sign in to comment.