Fixed blast mining trying to drop non-items

This commit is contained in:
nossr50
2024-09-14 15:12:39 -07:00
parent 88cacf8fff
commit 9b046bd490
2 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,7 @@ public class MiningManager extends SkillManager {
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()),