mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Added a check to clean up flying EarthSmash
This commit is contained in:
parent
9720c5b7b2
commit
8329c8c210
1 changed files with 4 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue