mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
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.
This commit is contained in:
parent
2c78bac8f7
commit
e3b3b7cfdb
@ -67,7 +67,7 @@ public class EntityListener implements Listener {
|
|||||||
plugin.addToFallingBlockTracker(entityID, block);
|
plugin.addToFallingBlockTracker(entityID, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plugin.fallingBlockIsTracked(entityID) && block.getType() == Material.AIR) {
|
if (plugin.fallingBlockIsTracked(entityID)) {
|
||||||
mcMMO.placeStore.setFalse(plugin.getSourceBlock(entityID));
|
mcMMO.placeStore.setFalse(plugin.getSourceBlock(entityID));
|
||||||
mcMMO.placeStore.setTrue(block);
|
mcMMO.placeStore.setTrue(block);
|
||||||
plugin.removeFromFallingBlockTracker(entityID);
|
plugin.removeFromFallingBlockTracker(entityID);
|
||||||
|
Loading…
Reference in New Issue
Block a user