mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Fix issue where Tree Feller affected player-placed blocks. Fixes #507
This commit is contained in:
@ -240,11 +240,13 @@ public class WoodCutting {
|
||||
return;
|
||||
}
|
||||
|
||||
if (type.equals(Material.LOG) || type.equals(Material.LEAVES)) {
|
||||
toBeFelled.add(currentBlock);
|
||||
}
|
||||
else if (Config.getInstance().getBlockModsEnabled() && (ModChecks.isCustomLogBlock(currentBlock) || ModChecks.isCustomLeafBlock(currentBlock))) {
|
||||
toBeFelled.add(currentBlock);
|
||||
if (!mcMMO.placeStore.isTrue(currentBlock)) {
|
||||
if ((type.equals(Material.LOG) || type.equals(Material.LEAVES))) {
|
||||
toBeFelled.add(currentBlock);
|
||||
}
|
||||
else if (Config.getInstance().getBlockModsEnabled() && (ModChecks.isCustomLogBlock(currentBlock) || ModChecks.isCustomLeafBlock(currentBlock))) {
|
||||
toBeFelled.add(currentBlock);
|
||||
}
|
||||
}
|
||||
|
||||
Block xPositive = currentBlock.getRelative(1, 0, 0);
|
||||
|
Reference in New Issue
Block a user