Skip to content

[Bug]: Performant messes with positioning logic/delta movement #293

@RaveTr

Description

@RaveTr

Describe the bug you're experiencing

The following code experiences logical errors when Performant is installed:

	public boolean isStuck() {
		double dx = getX() - xo;
		double dz = getZ() - zo;
		double dxSqr = dx * dx;
		double dzSqr = dz * dz;
		
		return dxSqr + dzSqr < getMovementThreshold();
	}

	public double getMovementThreshold() {
		return 2.500000277905201E-7; // Default (arbitrary) value used by vanilla's movement controllers
	}

dx and dz fluctuate dramatically with Performant installed. Is there a known workaround?

Reproducability

  • Download Performant.
  • Use any mod whose animations (or other client-side aspects) depend on movement.

Mod up to date

  • Before submitting this issue I updated to the newest version and reproduced it

Minecraft version

1.16.5

Modloader version

Forge

Logs

None

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions