mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 03:30:10 +00:00
Optimized Bloodbending a bit
If you were to bloodbend an entity initially close to you, the distance between you and that entity while bloodbending would be the same. This made throwing difficult as if you were to hit the entity (because it's within arm range) the move wouldn't work. I set the distance value to 6, so that when you Bloodbend an entity the distance between it and yourself is always 6 unless you point at a wall or the floor.
This commit is contained in:
parent
8ac15b4710
commit
046d1fd0f5
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ public class Bloodbending {
|
|||
continue;
|
||||
}
|
||||
Location location = Methods.getTargetedLocation(player,
|
||||
(int) targetentities.get(entity).distance(player.getLocation()));
|
||||
6 /*(int) targetentities.get(entity).distance(player.getLocation())*/);
|
||||
double distance = location.distance(newlocation);
|
||||
double dx, dy, dz;
|
||||
dx = location.getX() - newlocation.getX();
|
||||
|
|
Loading…
Reference in a new issue