From 7be5b4ecbd7bb938dee54ae77405fa1af4ee8fee Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 24 Dec 2018 00:21:13 -0800 Subject: [PATCH] Monitor only blocks that replace air. This fixes the TreeFeller interaction with stripped wood. --- src/main/java/com/gmail/nossr50/listeners/BlockListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java index 2f4343ce5..067b92bb8 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -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);