瀏覽代碼

Useless check for air.

The block will always be replacing either air, water, or lava. The check
for whether or not it's being tracked is sufficient.
GJ 12 年之前
父節點
當前提交
e3b3b7cfdb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/gmail/nossr50/listeners/EntityListener.java

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

@@ -67,7 +67,7 @@ public class EntityListener implements Listener {
                     plugin.addToFallingBlockTracker(entityID, block);
                 }
 
-                if (plugin.fallingBlockIsTracked(entityID) && block.getType() == Material.AIR) {
+                if (plugin.fallingBlockIsTracked(entityID)) {
                     mcMMO.placeStore.setFalse(plugin.getSourceBlock(entityID));
                     mcMMO.placeStore.setTrue(block);
                     plugin.removeFromFallingBlockTracker(entityID);