mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fix issue where Tree Feller affected player-placed blocks. Fixes #507
This commit is contained in:
parent
81dae8c43d
commit
bbbd12d461
@ -21,6 +21,7 @@ Version 1.3.13-dev
|
||||
+ Added wooden button to the list of items that shouldn't trigger abilities
|
||||
+ Added a new feature to fishing. Players will have +10% chance of finding enchanted items when fishing while it's raining
|
||||
+ Added displaying bonus perks on skill commands
|
||||
= Fixed issue with Tree Feller dropping player-placed blocks
|
||||
= Fixed issue with missing default cases from several switch/case statements
|
||||
= Fixed issue with Mining using actual skill level rather than max skill level
|
||||
= Fixed some issues with static access
|
||||
|
@ -240,12 +240,14 @@ public class WoodCutting {
|
||||
return;
|
||||
}
|
||||
|
||||
if (type.equals(Material.LOG) || type.equals(Material.LEAVES)) {
|
||||
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);
|
||||
Block xNegative = currentBlock.getRelative(-1, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user