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

Fix issues with spleef tracker #1301

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Fix issues with spleef tracker #1301

merged 1 commit into from
Feb 27, 2024

Conversation

Pablete1234
Copy link
Member

The spleef tracker is iterating to get all potential blocks under a player, however only actually ever checks for the block the player is in. This fixes up that bug to actually search different blocks under the player, as well as making the tracker a bit more lenient by increasing max time for spleef from 1 second to 1.5s, and radius for players from exactly their hitbox size to 0.05 more.

On top of those changes, it also changes from Block to Vector, to avoid keeping references to the world and needing to get blocks off of the world when none of the functionality requires it.

Signed-off-by: Pablo Herrera <[email protected]>
@Pablete1234 Pablete1234 added the bug Something isn't working label Feb 24, 2024
@Pablete1234 Pablete1234 added the ready PR is ready to merge label Feb 24, 2024
@Electroid Electroid merged commit 5950b9a into dev Feb 27, 2024
2 checks passed
@Electroid Electroid deleted the fix-spleef-tracker branch February 27, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready PR is ready to merge
Development

Successfully merging this pull request may close these issues.

2 participants