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

Remove magic values from spawnpoint ring offsets #7267

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

Warriorrrr
Copy link
Member

Description:

Calculates the offsets for the points in spawn point circles instead of using precalculated values, the benefit of this is that it's easier to see what it's doing and makes it easier to make changes to it. Due to imprecision the offsets won't be exactly the same but the difference isn't significant


  • I have tested this pull request for defects on a server.

By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the Towny License for perpetuity.

@Warriorrrr Warriorrrr added this to the 0.100.2.0 milestone Feb 18, 2024
Copy link
Member

@LlmDl LlmDl left a comment

Choose a reason for hiding this comment

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

I calculated that precision myself and I will miss it dearly but in the end I am alright with this change.

@LlmDl LlmDl merged commit e06c22d into master Feb 19, 2024
4 checks passed
@LlmDl LlmDl deleted the feat/spawnpoint-rm-magic branch February 19, 2024 14:43
LlmDl added a commit that referenced this pull request Feb 19, 2024
Warrior with PR #7267.
  - Fix mob removal on folia, courtesy of Warrior with PR #7262.
    - Closes #7261, #7221, #7202, #7253.
  - Make our custom registered commands identifiable, courtesy of
Warrior with PR #7263.
  - Move using_economy to the eco section of the config, courtesy of
Warrior with PR #7265.
  - Automatic config edit:
    - plugin.interfacing.using_economy moves to economy.using_economy
  - Remove uuid percentage tracking, courtesy of Warrior with PR #7266.
  - Make PlotClaim a runnable, courtesy of Warrior with PR #7268.
  - Reorganize test directory layout, courtesy of Warrior with PR #7269.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants