perpetual movement machine fixed
This commit is contained in:
1 parent
5626255b12
commit
537a30710a
2 files changed
+7
-2
No files matched your search
@@ -24,6 +24,7 @@ import engine.jobs.TrackJob;
|
||||
import engine.math.AtomicFloat;
|
||||
import engine.math.Bounds;
|
||||
import engine.math.Vector3fImmutable;
|
||||
import engine.mobileAI.utilities.CombatUtilities;
|
||||
import engine.net.ByteBufferWriter;
|
||||
import engine.net.DispatchMessage;
|
||||
import engine.net.client.msg.UpdateStateMsg;
|
||||
@@ -819,7 +820,8 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
||||
//TODO who the fuck wrote changeHeightJob. FIX THIS.
|
||||
|
||||
|
||||
if (this.endLoc.equals(Vector3fImmutable.ZERO) || this.endLoc.equals(this.bindLoc))
|
||||
float distance = this.loc.distance2D(this.endLoc);
|
||||
if (this.endLoc.equals(Vector3fImmutable.ZERO) || this.endLoc.equals(this.bindLoc) || distance < 1)
|
||||
return false;
|
||||
|
||||
if (this.takeOffTime != 0)
|
||||
|
||||
Reference in new issue
Block a user