mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-18 22:24:35 +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 block = BlockSource.getEarthSourceBlock(player, range, ClickType.SHIFT_DOWN);
|
||||||
block(player);
|
block(player);
|
||||||
if (block != null) {
|
if (block != null) {
|
||||||
|
if (block.getLocation().distance(player.getLocation()) > preparerange) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
sourceblock = block;
|
sourceblock = block;
|
||||||
focusBlock();
|
focusBlock();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue