mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Merge pull request #249 from DeathlyPanda/patch-2
Fix Pickaxe of Vein Mining Dupe
This commit is contained in:
commit
7c69607cbd
@ -2582,7 +2582,7 @@ public class SlimefunSetup {
|
||||
Block b = block.getBlock();
|
||||
b.getWorld().playEffect(b.getLocation(), Effect.STEP_SOUND, b.getType());
|
||||
for (ItemStack drop: b.getDrops()) {
|
||||
b.getWorld().dropItemNaturally(b.getLocation(), b.getType().toString().endsWith("_ORE") ? new CustomItem(drop, fortune): drop);
|
||||
b.getWorld().dropItemNaturally(b.getLocation(), (!drop.getType().isBlock()) ? new CustomItem(drop, fortune): drop);
|
||||
}
|
||||
b.setType(Material.AIR);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user