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

Update FarmPlotBlocks to automatically update from ItemLists when generating defaults. #7323

Merged
merged 7 commits into from
May 23, 2024

Conversation

LlmDl
Copy link
Member

@LlmDl LlmDl commented Mar 22, 2024

Description:

This PR alters how we construct the list of default farm plot blocks, to use our ItemLists.

The ItemLists involving plants, crops and trees have been adjusted to be more comprehensive and detailed as well, adding some blocks which were missing.

This PR adds a new MigrationType specifically for farm blocks, which will be able to smartly add any new farm blocks if they are missing from the config.

Finally this PR adds a new Migration Runnable which will update existing config files' farm block lists with any missing blocks, using our new default block list.


New Nodes/Commands/ConfigOptions:


Relevant Towny Issue ticket:


  • 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.

@LlmDl LlmDl added this to the 0.100.3.0 milestone Mar 29, 2024
@LlmDl LlmDl force-pushed the update/plants_and_farm_blocks branch from b332c8c to 34c1935 Compare May 17, 2024 19:31
@LlmDl LlmDl marked this pull request as ready for review May 17, 2024 19:55
LlmDl added 2 commits May 18, 2024 09:54
specifically for farm blocks.

This migration will only add to the list of blocks if the block is not
already present.

There is also a new runnable migration added to smartly update farm
block lists in existing config with any missing blocks, while leaving
any previously added blocks in the list.
@LlmDl LlmDl changed the title Work on updating FarmPlotBlocks to automatically update from ItemLists when generating defaults. Update FarmPlotBlocks to automatically update from ItemLists when generating defaults. May 23, 2024
@LlmDl LlmDl merged commit a5e0fcf into master May 23, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant