Closed BlueFyreMatt closed 9 months ago
Thank you, this does seem to fix the issue with outposts. We are experiencing issues with merge costs now but I'll close this and make a separate issue once I've had a chance to pinpoint the issue.
As always, thank you for being so quick with the fix!
If you enjoy quick fixes you should consider becoming a sponsor again. Only 1% of servers are sponsoring.
What steps will reproduce the problem?
Towns cannot merge if they are in the same nation due to the calculation within the getMaxOutposts() method.
Given that remainingTown and succumbingTown have the same nation, their nation's outpost limit (nationOutposts) is the same. Therefore, the sum of their individual outpost limits (townOutposts + nationOutposts) will always be greater than the maximum allowed number of outposts (maxOutposts).
This error does still persist with towns that are not in the same nation and its likely there are further calculation issues for outposts when merging.
What is the expected output?
Towns should merge
Towny version
0.100.0.0
Server version
git-Purpur-2062 (MC: 1.20.1)*
Please use Pastebin.com to link the following files
.