Skip to content

Commit

Permalink
Fix issue with not working drop
Browse files Browse the repository at this point in the history
  • Loading branch information
zrdzn committed Nov 4, 2023
1 parent 732e297 commit ab4e381
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void onSourceBreak(BlockBreakEvent event) {
// Get all drops from the source.
Set<Entry<String, DropConfig>> drops = this.config.getDrops().entrySet().stream()
.filter(drop -> !userSetting.hasDisabledDrop(drop.getKey()))
.filter(drop -> drop.getValue().getDisabledBioms().contains(block.getBiome()))
.filter(drop -> !drop.getValue().getDisabledBioms().contains(block.getBiome()))
.filter(drop -> drop.getValue().getSource().getType() == block.getType())
.filter(drop -> drop.getValue().getSource().getDurability() == block.getData())
.collect(Collectors.toSet());
Expand Down

0 comments on commit ab4e381

Please sign in to comment.