Преглед изворни кода

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);