mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixes #3116
This commit is contained in:
parent
805c2eafcc
commit
96574bed6f
@ -50,6 +50,7 @@
|
||||
|
||||
#### Fixes
|
||||
* Fixed #3105
|
||||
* Fixed #3116
|
||||
|
||||
## Release Candidate 24 (03 Jun 2021)
|
||||
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#24
|
||||
|
@ -39,10 +39,10 @@ public class SmeltersPickaxe extends SimpleSlimefunItem<ToolUseHandler> implemen
|
||||
Block b = e.getBlock();
|
||||
|
||||
if (SlimefunTag.SMELTERS_PICKAXE_BLOCKS.isTagged(b.getType()) && !BlockStorage.hasBlockInfo(b)) {
|
||||
Collection<ItemStack> blockDrops = b.getDrops(getItem());
|
||||
Collection<ItemStack> blockDrops = b.getDrops(tool);
|
||||
|
||||
for (ItemStack drop : blockDrops) {
|
||||
if (drop != null && drop.getType() != Material.AIR) {
|
||||
if (drop != null && !drop.getType().isAir()) {
|
||||
smelt(b, drop, fortune);
|
||||
drops.add(drop);
|
||||
}
|
||||
@ -60,8 +60,10 @@ public class SmeltersPickaxe extends SimpleSlimefunItem<ToolUseHandler> implemen
|
||||
if (furnaceOutput.isPresent()) {
|
||||
b.getWorld().playEffect(b.getLocation(), Effect.MOBSPAWNER_FLAMES, 1);
|
||||
drop.setType(furnaceOutput.get().getType());
|
||||
drop.setAmount(fortune);
|
||||
}
|
||||
|
||||
// Fixes #3116
|
||||
drop.setAmount(fortune);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user