Skip to content

Commit

Permalink
Fixed blast mining trying to drop non-items
Browse files Browse the repository at this point in the history
  • Loading branch information
nossr50 committed Sep 14, 2024
1 parent 88cacf8 commit 9b046bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Version 2.2.020
(Codebase) Reworked Roll implementation (See notes)
(Codebase) Added unit test coverage for Roll
Fixed blast mining trying to drop non-items (thanks IAISI)
Fixed error spam in mcMMO potion matching logic (see notes)
Fixed a bug where Roll was modifying damage unnecessarily

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public void blastMiningDropProcessing(float yield, EntityExplodeEvent event) {
if (isDropIllegal(blockState.getType()))
continue;

if (Probability.ofPercent(50).evaluate()) {
if (blockState.getType().isItem() && Probability.ofPercent(50).evaluate()) {
ItemUtils.spawnItem(getPlayer(),
Misc.getBlockCenter(blockState),
new ItemStack(blockState.getType()),
Expand Down

0 comments on commit 9b046bd

Please sign in to comment.