Skip to content

Commit

Permalink
Relocated Item check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamikaschu committed Dec 3, 2023
1 parent 91ac0ba commit 8841c3d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ public PlayerEventListener(
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onPlayerDyeSign(PlayerInteractEvent event) {
ItemStack itemStack = event.getItem();
if (itemStack == null) {
return;
}
Block block = event.getClickedBlock();
if (block != null && block.getState() instanceof Sign) {
if (itemStack == null) {
return;
}
if (DYES.contains(itemStack.getType())) {
Location location = BukkitUtil.adapt(block.getLocation());
PlotArea area = location.getPlotArea();
Expand Down

0 comments on commit 8841c3d

Please sign in to comment.