浏览代码

Don't check if we don't watch.

GJ 12 年之前
父节点
当前提交
dae25c2f2d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/gmail/nossr50/listeners/BlockListener.java

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

@@ -63,7 +63,7 @@ public class BlockListener implements Listener {
         Block futureEmptyBlock = event.getBlock().getRelative(direction); // Block that would be air after piston is finished
 
         for (Block b : blocks) {
-            if (mcMMO.placeStore.isTrue(b)) {
+            if (BlockUtils.shouldBeWatched(b.getState()) && mcMMO.placeStore.isTrue(b)) {
                 b.getRelative(direction).setMetadata(mcMMO.blockMetadataKey, mcMMO.metadataValue);
                 if (b.equals(futureEmptyBlock)) {
                     mcMMO.placeStore.setFalse(b);