ColinHDev / CPlot

Land and world management plugin for PocketMine-MP
https://discord.gg/cAYKEtaqnp
GNU General Public License v3.0
29 stars 12 forks source link

Problematic order of database querying and async chunk modification #51

Open ColinHDev opened 2 years ago

ColinHDev commented 2 years ago

Currently, the order in which e.g. plot resetting or merging happens is:

This could be fixed by changing the above-mentioned order:

Although especially plot merging takes a comparably long time due to its many queries, even on my test server merging only takes around 2 seconds. So it is highly unlikely that this will actually happen to someone.