Browse Source

mcMMO now tracks blocks moved by pistons and flags them as unnatural, even if they were natural to combat automated xp farming

nossr50 6 years ago
parent
commit
e80e771e9d
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/listeners/BlockListener.java

+ 1 - 0
Changelog.txt

@@ -8,6 +8,7 @@ Key:
   - Removal
   - Removal
 
 
 Version 2.1.14
 Version 2.1.14
+    mcMMO now flags blocks moved by piston as not natural to prevent automated XP farms
     Fixed a bug where Fuel Efficiency was way too good
     Fixed a bug where Fuel Efficiency was way too good
     Fuel Efficiency now uses the rank system
     Fuel Efficiency now uses the rank system
     Removed Fuel Efficiency config options in advanced.yml
     Removed Fuel Efficiency config options in advanced.yml

+ 1 - 1
src/main/java/com/gmail/nossr50/listeners/BlockListener.java

@@ -70,7 +70,7 @@ public class BlockListener implements Listener {
         movedBlock = movedBlock.getRelative(direction, 2);
         movedBlock = movedBlock.getRelative(direction, 2);
 
 
         for (Block b : event.getBlocks()) {
         for (Block b : event.getBlocks()) {
-            if (BlockUtils.shouldBeWatched(b.getState()) && mcMMO.getPlaceStore().isTrue(b)) {
+            if (BlockUtils.shouldBeWatched(b.getState())) {
                 movedBlock = b.getRelative(direction);
                 movedBlock = b.getRelative(direction);
                 mcMMO.getPlaceStore().setTrue(movedBlock);
                 mcMMO.getPlaceStore().setTrue(movedBlock);
             }
             }