no more abusing the ice kids

This commit is contained in:
nossr50
2019-01-10 21:27:50 -08:00
parent 400e15b559
commit 00a14ccb17
2 changed files with 15 additions and 0 deletions

View File

@ -84,6 +84,20 @@ public class BlockListener implements Listener {
}
}
/**
* Monitor blocks formed by entities (snowmen)
*
* @param event The event to watch
*/
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onEntityBlockFormEvent(EntityBlockFormEvent event)
{
if(BlockUtils.shouldBeWatched(event.getBlock().getState()))
{
mcMMO.getPlaceStore().setTrue(event.getBlock());
}
}
/**
* Monitor falling blocks.
*