mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 16:59:37 +01:00
More mod fixes for Woodcutting.
This commit is contained in:
parent
c2fb57fce9
commit
92acf62884
@ -104,10 +104,10 @@ public class WoodCutting {
|
|||||||
for (Block x : toBeFelled) {
|
for (Block x : toBeFelled) {
|
||||||
if (Misc.blockBreakSimulate(x, player, true)) {
|
if (Misc.blockBreakSimulate(x, player, true)) {
|
||||||
if (Config.getInstance().getBlockModsEnabled()) {
|
if (Config.getInstance().getBlockModsEnabled()) {
|
||||||
|
if (ModChecks.isCustomLogBlock(x)) {
|
||||||
CustomBlock block = ModChecks.getCustomBlock(x);
|
CustomBlock block = ModChecks.getCustomBlock(x);
|
||||||
item = block.getItemDrop();
|
item = block.getItemDrop();
|
||||||
|
|
||||||
if (ModChecks.isCustomLogBlock(x)) {
|
|
||||||
if (!mcMMO.placeStore.isTrue(x)) {
|
if (!mcMMO.placeStore.isTrue(x)) {
|
||||||
WoodCutting.woodCuttingProcCheck(player, x);
|
WoodCutting.woodCuttingProcCheck(player, x);
|
||||||
xp = block.getXpGain();
|
xp = block.getXpGain();
|
||||||
@ -120,6 +120,9 @@ public class WoodCutting {
|
|||||||
Misc.dropItem(x.getLocation(), item);
|
Misc.dropItem(x.getLocation(), item);
|
||||||
}
|
}
|
||||||
else if (ModChecks.isCustomLeafBlock(x)) {
|
else if (ModChecks.isCustomLeafBlock(x)) {
|
||||||
|
CustomBlock block = ModChecks.getCustomBlock(x);
|
||||||
|
item = block.getItemDrop();
|
||||||
|
|
||||||
final int SAPLING_DROP_CHANCE = 10;
|
final int SAPLING_DROP_CHANCE = 10;
|
||||||
|
|
||||||
/* Remove the block */
|
/* Remove the block */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user