Skip to content

Commit

Permalink
Merge pull request Slimefun#3485 from J3fftw1/fix/fixes-inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBusyBiscuit authored Mar 9, 2022
2 parents 52aa814 + 2804408 commit f8db965
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public void onInventoryCreativeEvent(InventoryCreativeEvent e) {
// get the block the player is looking at for later
Block b = player.getTargetBlockExact(5);

if (!isActualMiddleClick(e, b)) {
// Fixes: #3483
if (b == null || !isActualMiddleClick(e, b)) {
return;
}

Expand Down

0 comments on commit f8db965

Please sign in to comment.