Tree Feller drops saplings again

This commit is contained in:
nossr50 2020-11-06 14:04:40 -08:00
parent a4fd632d53
commit 5b6a57d7a8
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
Version 2.1.154
Fixed a bug where Tree Feller was not dropping stuff like saplings
(API) Author class has been reworked
(API) McMMOChatEvent::getSender removed (use getDisplayName() instead)
(API) McMMMOChatEvent::setDisplayName() removed (you can set author names in Author)

View File

@ -301,7 +301,8 @@ public class WoodcuttingManager extends SkillManager {
processHarvestLumber(blockState);
} else if (BlockUtils.isNonWoodPartOfTree(blockState)) {
//Drop displaced non-woodcutting XP blocks
Misc.spawnItemsFromCollection(Misc.getBlockCenter(blockState), block.getDrops(), ItemSpawnReason.TREE_FELLER_DISPLACED_BLOCK, 1);
// Misc.spawnItemsFromCollection(Misc.getBlockCenter(blockState), block.getDrops(), ItemSpawnReason.TREE_FELLER_DISPLACED_BLOCK, 1);
Misc.spawnItemsFromCollection(Misc.getBlockCenter(blockState), block.getDrops(), ItemSpawnReason.TREE_FELLER_DISPLACED_BLOCK);
}
blockState.setType(Material.AIR);