Fixed bug where falling blocks were not tracked

Fixes #2130
This commit is contained in:
TfT_02
2014-07-15 14:46:20 +02:00
parent 0aa67727f5
commit 037022b175
2 changed files with 4 additions and 1 deletions

View File

@ -109,7 +109,9 @@ public class EntityListener implements Listener {
public void onEntityChangeBlock(EntityChangeBlockEvent event) {
Block block = event.getBlock();
if (!BlockUtils.shouldBeWatched(block.getState())) {
// When the event is fired for the falling block that changes back to a normal block
// event.getBlock().getType() returns AIR
if (!BlockUtils.shouldBeWatched(block.getState()) && block.getType() != Material.AIR) {
return;
}