浏览代码

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

nossr50 6 年之前
父节点
当前提交
e80e771e9d
共有 2 个文件被更改,包括 2 次插入1 次删除
  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
 
 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
     Fuel Efficiency now uses the rank system
     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);
 
         for (Block b : event.getBlocks()) {
-            if (BlockUtils.shouldBeWatched(b.getState()) && mcMMO.getPlaceStore().isTrue(b)) {
+            if (BlockUtils.shouldBeWatched(b.getState())) {
                 movedBlock = b.getRelative(direction);
                 mcMMO.getPlaceStore().setTrue(movedBlock);
             }