1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
This commit is contained in:
TheBusyBiscuit 2021-06-18 15:09:03 +02:00
parent 805c2eafcc
commit 96574bed6f
2 changed files with 6 additions and 3 deletions

View File

@ -50,6 +50,7 @@
#### Fixes
* Fixed #3105
* Fixed #3116
## Release Candidate 24 (03 Jun 2021)
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#24

View File

@ -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