mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-14 04:47:51 +00:00
EarthSmash now obeys its shootRange get/set
This commit is contained in:
parent
0817b222a9
commit
636299c4df
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ public class EarthSmash {
|
|||
if(smash.state == State.GRABBED && smash.player == player) {
|
||||
smash.state = State.SHOT;
|
||||
smash.destination = player.getEyeLocation().clone().add
|
||||
(player.getEyeLocation().getDirection().normalize().multiply(TRAVEL_RANGE));
|
||||
(player.getEyeLocation().getDirection().normalize().multiply(smash.shootRange));
|
||||
smash.loc.getWorld().playEffect(smash.loc, Effect.GHAST_SHOOT, 0, 10);
|
||||
}
|
||||
}
|
||||
|
@ -263,7 +263,7 @@ public class EarthSmash {
|
|||
}
|
||||
revert();
|
||||
destination = player.getEyeLocation().clone().add
|
||||
(player.getEyeLocation().getDirection().normalize().multiply(TRAVEL_RANGE));
|
||||
(player.getEyeLocation().getDirection().normalize().multiply(shootRange));
|
||||
Vector direction = Methods.getDirection(loc, destination).normalize();
|
||||
|
||||
List<Entity> entities = Methods.getEntitiesAroundPoint(loc.clone().add(0,2,0), FLIGHT_DETECTION_RADIUS);
|
||||
|
|
Loading…
Reference in a new issue