issues
search
TownyAdvanced
/
TownyProvinces
An add-on plugin for Towny, which makes claiming more organized, reducing staff workload and server toxicity.
20
stars
10
forks
source link
Limit Scope of price recalculation
#71
Open
Goosius1
opened
1 year ago
Goosius1
commented
1 year ago
Currently the price recalculation function starts after every regeneration, and recalculates ALL prices in the world
This is going to overwrite any custom prices which a server has put on
Solution: Limit the recalculation function only to affected provinces:
Some provinces were deleted, we can ignore those
Some provinces were added....yes we want to calculate those
Some existing provinces may have expanded...yes we want to do those
To do this, we need, for every regeneration job, to keep a list of changed provinces e.g.
deletedProvinces
newProvinces
updatedProvinces
Goosius1
commented
1 year ago
This work is less important now that the price limiter is in place