From e3b3b7cfdbe7ee05d34a68296cacdd0c0cc9b076 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 18 Jan 2013 09:41:46 -0500 Subject: [PATCH] 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. --- src/main/java/com/gmail/nossr50/listeners/EntityListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java index bf8c13ffe..e9671931d 100644 --- a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java +++ b/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);