mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Fixed EarthBlast Cleanup
EarthBlast's were not being removed correctly if the player spammed left click and shift.
This commit is contained in:
parent
6b54835d3c
commit
8f6d92d9e2
1 changed files with 5 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue