Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

Fix isAuthorizedPlayerNear distance#53

Merged
wingzero54 merged 1 commit intoCivMC:masterfrom
MelnCat:patch-1
Oct 10, 2022
Merged

Fix isAuthorizedPlayerNear distance#53
wingzero54 merged 1 commit intoCivMC:masterfrom
MelnCat:patch-1

Conversation

@MelnCat
Copy link
Copy Markdown

@MelnCat MelnCat commented Aug 15, 2022

Currently, it inputs the diameter of the distance into getNearbyEntities, effectively doubling the radius that it's checking. getNearbyEntities takes in 3 radii, not diameters.
This change makes isAuthorizedPlayerNear input the radius into getNearbyEntities instead of the diameter.

Currently, it inputs the diameter of the distance into getNearbyEntities, effectively doubling the radius that it's checking. getNearbyEntities takes in 3 radii, not diameters. 
This change makes isAuthorizedPlayerNear input the radius into getNearbyEntities instead of the diameter.
Copy link
Copy Markdown

@Diet-Cola Diet-Cola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice find

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants