mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Fixed Sawmill Bug where only 1 item was dropped
This commit is contained in:
parent
4df60e4502
commit
092d79dda7
@ -1904,7 +1904,7 @@ public class SlimefunSetup {
|
||||
if (MaterialHelper.isLog(b.getRelative(BlockFace.UP).getType())) {
|
||||
Block log = b.getRelative(BlockFace.UP);
|
||||
if (!BlockStorage.hasBlockInfo(log)) {
|
||||
ItemStack item = new CustomItem(MaterialHelper.getWoodFromLog(log.getType()), 8);
|
||||
ItemStack item = new CustomItem(MaterialHelper.getWoodFromLog(log.getType()), 0, 8);
|
||||
log.getWorld().dropItemNaturally(log.getLocation(), item);
|
||||
log.getWorld().playEffect(log.getLocation(), Effect.STEP_SOUND, log.getType());
|
||||
log.setType(Material.AIR);
|
||||
|
Loading…
Reference in New Issue
Block a user