Skip to content

Commit

Permalink
Merge from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Aug 10, 2024
2 parents cca8d92 + 7a3786e commit e177bd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ public List<SlimefunItem> getAllSlimefunItems() {
return slimefunItems;
}

/**
* This {@link List} contains every <strong>enabled</strong> {@link SlimefunItem}.
*
* @return A {@link List} containing every enabled {@link SlimefunItem}
*/

public List<SlimefunItem> getEnabledSlimefunItems() {
return enabledItems;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void onBlockBreak(BlockBreakEvent e) {
var heldItem = e.getPlayer().getInventory().getItemInMainHand();
var block = e.getBlock();
var blockData = StorageCacheUtils.getBlock(block.getLocation());
var sfItem = SlimefunItem.getById(blockData.getSfId());
var sfItem = blockData == null ? null : SlimefunItem.getById(blockData.getSfId());

// If there is a Slimefun Block here, call our BreakEvent and, if cancelled, cancel this event
// and return
Expand Down

0 comments on commit e177bd1

Please sign in to comment.