Skip to content

Remove world references stored inside WorldCoord#8050

Merged
LlmDl merged 1 commit intomasterfrom
feat/remove-worldcoord-world-reference
Jan 2, 2026
Merged

Remove world references stored inside WorldCoord#8050
LlmDl merged 1 commit intomasterfrom
feat/remove-worldcoord-world-reference

Conversation

@Warriorrrr
Copy link
Copy Markdown
Member

Description:

The getBukkitWorld method on WorldCoord isn't called very often, and even when it is, it's at worst just a simple map lookup. Removing the field lets us be a bit nicer to the gc, since WorldCoord is more often used as a throwaway object to look up towns with.

worldUUID is also just completely unused, the constructor parameter is untouched in case it's ever useful in the future.


  • 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.102.1.0 milestone Dec 28, 2025
@LlmDl LlmDl merged commit a882314 into master Jan 2, 2026
3 checks passed
@LlmDl LlmDl deleted the feat/remove-worldcoord-world-reference branch January 2, 2026 15:12
LlmDl added a commit that referenced this pull request Jan 2, 2026
Warrior with PR #8037.
  - Fix a logic error in the PlotGroup#setResident function, courtesy of
Remasuri with PR #8043.
  - Bit pack perms in TownyPermission objects, courtesy of Warrior with
PR #8048.
  - Remove world references stored inside WorldCoord, courtesy of
Warrior with PR #8050.
  - Fix message when attempting to overclaim your own town, courtesy of
Warrior with PR #8051.
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