mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-25 18:17:46 +01:00
Monitor only blocks that replace air. This fixes the TreeFeller interaction with stripped wood.
This commit is contained in:
parent
565fb35217
commit
7be5b4ecbd
@ -132,7 +132,9 @@ public class BlockListener implements Listener {
|
||||
|
||||
/* Check if the blocks placed should be monitored so they do not give out XP in the future */
|
||||
if (BlockUtils.shouldBeWatched(blockState) && blockState.getType() != Material.CHORUS_FLOWER) {
|
||||
mcMMO.getPlaceStore().setTrue(blockState);
|
||||
//Monitor only blocks that replaced air
|
||||
if(event.getBlockReplacedState().getType() == Material.AIR)
|
||||
mcMMO.getPlaceStore().setTrue(blockState);
|
||||
}
|
||||
|
||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
||||
|
Loading…
Reference in New Issue
Block a user