mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
commit
36377c5777
@ -1892,6 +1892,9 @@ public class SlimefunSetup {
|
||||
ItemStack log = p.getInventory().getItemInMainHand();
|
||||
|
||||
ItemStack item = new ItemStack(MaterialHelper.getWoodFromLog(log.getType()), 8);
|
||||
if(item == null || item.getType() == Material.AIR) {
|
||||
return false;
|
||||
}
|
||||
b.getWorld().dropItemNaturally(b.getLocation(), item);
|
||||
b.getWorld().playEffect(b.getLocation(), Effect.STEP_SOUND, log.getType());
|
||||
log.setAmount(log.getAmount() -1);
|
||||
|
Loading…
Reference in New Issue
Block a user