Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
RaveTr opened this issue Sep 1, 2024 · 0 comments
Open
1 task done

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

RaveTr opened this issue Sep 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@RaveTr
Copy link

RaveTr commented Sep 1, 2024

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

@RaveTr RaveTr added the bug Something isn't working label Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants