Monitor only blocks that replace air. This fixes the TreeFeller interaction with stripped wood.

This commit is contained in:
nossr50 2018-12-24 00:21:13 -08:00
parent 565fb35217
commit 7be5b4ecbd

View File

@ -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);