Skip to content

Commit

Permalink
Merge branch 'Slimefun:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
J3fftw1 committed Jan 13, 2024
2 parents bfd1e8c + 86533a8 commit de031bb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ public void onRightClick(PlayerInteractEvent e) {

// Fixes #4087 - Prevents players from interacting with a block that is about to be deleted
// We especially don't want to open inventories as that can cause duplication
if (Slimefun.getTickerTask().isDeletedSoon(e.getClickedBlock().getLocation())) {
if (e.getClickedBlock() != null && Slimefun.getTickerTask().isDeletedSoon(e.getClickedBlock().getLocation())) {
e.setCancelled(true);
return;
}
Expand Down

0 comments on commit de031bb

Please sign in to comment.