mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-14 04:47:51 +00:00
Merge pull request #189 from kingbirdy/fix/dynamic-sourcing
Fix EarthBlast using blocks outside range
This commit is contained in:
commit
3371b5e17b
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,9 @@ public class EarthBlast {
|
|||
Block block = BlockSource.getEarthSourceBlock(player, range, ClickType.SHIFT_DOWN);
|
||||
block(player);
|
||||
if (block != null) {
|
||||
if (block.getLocation().distance(player.getLocation()) > preparerange) {
|
||||
return false;
|
||||
}
|
||||
sourceblock = block;
|
||||
focusBlock();
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue