mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Fix EarthBlast using blocks outside range
Dynamic sourcing allowed earthblast to use blocks outside the prepare range as a source
This commit is contained in:
parent
0599d39da9
commit
cde1efc78b
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