code improvements, fix claymoreArrow cash, faster claymoreArrow despawn

This commit is contained in:
Jenny committed 2025-02-11 16:53:15 +01:00
1 parent 4959e3e0fa
commit 57eb7e5442
8 files changed
+40 -220

No files matched your search

@@ -34,8 +34,7 @@ public class repulsivePrimedTNT extends basePrimedTNT {
double dist = getTargetDist(target);
float speed = getSpeed();
Vec3 mult = new Vec3(speed / dist, speed / dist, speed / dist);
Vec3 ret = target.position().subtract(this.position()).normalize().multiply(mult);
return ret;
return target.position().subtract(this.position()).normalize().multiply(mult);
}
public double getTargetDist(Entity target) {