2
0
Эх сурвалжийг харах

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

nossr50 6 жил өмнө
parent
commit
7be5b4ecbd

+ 3 - 1
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);