Added a check to clean up flying EarthSmash

This commit is contained in:
Nathan Braun 2014-12-29 10:15:53 -08:00
parent 9720c5b7b2
commit 8329c8c210

View file

@ -379,6 +379,10 @@ public class EarthSmash {
/**
* Redraws the blocks for this instance of EarthSmash.
*/
if(currentBlocks.size() == 0) {
remove();
return;
}
for(BlockRepresenter blockRep : currentBlocks) {
Block block = loc.clone().add(blockRep.getX(),blockRep.getY(),blockRep.getZ()).getBlock();
if(player != null && Methods.isTransparentToEarthbending(player,block)) {