1
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:
TheBusyBiscuit 2017-04-15 00:34:25 +02:00 committed by GitHub
commit 7c69607cbd

View File

@ -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);
}