mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Changed MetalClips' second hit's function.
MetalClips' second hit will now let the user direct the magnetic fields towards a target location. Also removed the initial damage from a collision with a clip.
This commit is contained in:
parent
ad32b410f8
commit
3eef587229
1 changed files with 1 additions and 3 deletions
|
@ -242,7 +242,7 @@ public class MetalClips
|
|||
(int) player.getLocation().distance(oldLocation));
|
||||
double distance = loc.distance(oldLocation);
|
||||
|
||||
Vector v = Methods.getDirection(target.getLocation(), player.getLocation());
|
||||
Vector v = Methods.getDirection(target.getLocation(), Methods.getTargetedLocation(player, 10));
|
||||
|
||||
if(distance > 1.2)
|
||||
target.setVelocity(v.normalize().multiply(0.2));
|
||||
|
@ -289,8 +289,6 @@ public class MetalClips
|
|||
{
|
||||
if(e instanceof LivingEntity && e.getEntityId() != player.getEntityId())
|
||||
{
|
||||
Methods.damageEntity(player, e, 0.5);
|
||||
|
||||
if(e instanceof Player ||
|
||||
e instanceof Zombie ||
|
||||
e instanceof Skeleton)
|
||||
|
|
Loading…
Reference in a new issue