Fixed EarthBlast Cleanup

EarthBlast's were not being removed correctly if the player spammed left
click and shift.
This commit is contained in:
nathank33 2014-09-04 13:55:32 -07:00
parent 6b54835d3c
commit 8f6d92d9e2

View file

@ -136,6 +136,10 @@ public class EarthBlast {
}
private void unfocusBlock() {
if(destination != null){
breakBlock();
return;
}
sourceblock.setType(sourcetype);
instances.remove(id);
}
@ -248,7 +252,7 @@ public class EarthBlast {
}
if (sourceblock == null) {
instances.remove(player.getEntityId());
instances.remove(id);
return false;
}
if (player.getWorld() != sourceblock.getWorld()) {