mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
Definitely fixed sideways logs issues
... Apparently
This commit is contained in:
parent
5a6dc8511f
commit
58b01021c1
@ -10,6 +10,7 @@ import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.material.MaterialData;
|
||||
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import com.gmail.nossr50.datatypes.mods.CustomBlock;
|
||||
@ -184,7 +185,7 @@ public abstract class TreeFeller {
|
||||
|
||||
// TODO: Nerf XP from jungle trees, as it was done previously
|
||||
|
||||
Misc.dropItem(block.getLocation(), new ItemStack(Material.LOG, 1, Woodcutting.extractLogItemData(block.getData())));
|
||||
Misc.dropItem(block.getLocation(), new MaterialData(Material.LOG, Woodcutting.extractLogItemData(block.getData())).toItemStack(1));
|
||||
break;
|
||||
case LEAVES:
|
||||
Misc.randomDropItem(block.getLocation(), new ItemStack(Material.SAPLING, 1, Woodcutting.extractLogItemData(block.getData())), 10);
|
||||
|
@ -7,6 +7,7 @@ import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.material.MaterialData;
|
||||
import org.getspout.spoutapi.sound.SoundEffect;
|
||||
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
@ -145,7 +146,7 @@ public abstract class Woodcutting {
|
||||
else {
|
||||
byte blockData = block.getData();
|
||||
Location location = block.getLocation();
|
||||
ItemStack item = new ItemStack(Material.LOG, 1, blockData);
|
||||
ItemStack item = new MaterialData(Material.LOG, Woodcutting.extractLogItemData(block.getData())).toItemStack(1);
|
||||
|
||||
switch (TreeSpecies.getByData(extractLogItemData(blockData))) {
|
||||
case GENERIC:
|
||||
|
Loading…
Reference in New Issue
Block a user