Merge pull request #189 from kingbirdy/fix/dynamic-sourcing

Fix EarthBlast using blocks outside range
This commit is contained in:
MistPhizzle 2015-08-04 01:04:08 -04:00
commit 3371b5e17b

View file

@ -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;