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 POI as well as regions? #169

Open
timriker opened this issue Dec 23, 2019 · 3 comments
Open

update POI as well as regions? #169

timriker opened this issue Dec 23, 2019 · 3 comments

Comments

@timriker
Copy link

When trimming worlds, the regions/* files are removed for cleaned regions, but the poi/* files remain for regions that used to exist.

My understanding is that this causes POIs to not get recreated correctly if chunks and regions are later regenerated.

What is the impact of leaving the poi/* files? Is there a way to force them to be cleaned?

@Brettflan
Copy link
Owner

Hmm, I had no idea. I just checked briefly and see that the "poi" folder was added in 1.14. According to the MC wiki, those files are for "villager identified beds, job sites, and bells in the world".

I wouldn't think that leaving them would cause problems later down the line if the generation methods remain the same, but if something changes in world generation (from plugins, MC updates, or whatever), it might have some impact. I could be wrong and it could also cause problems as you describe, though.

Probably best to remove those for trimmed regions even if just to be on the safe side then, yes. I'll try to make some time soon to implement that.

@timriker
Copy link
Author

The old .dat files probably had villages and other items in the now-freed regions that should be deleted. I've not looked into the formats and contents for those. The new poi/* items seem to have the same names as the regions they cover. That's convenient. :)

@timriker
Copy link
Author

In the past, regenerating a region when the village.dat was there I think is the cause of the partial village bugs. Half houses and such. A lot has changed since then, so no idea if it makes a difference now. It seems cleaner to clean them up and have them get rebuilt if/when the region is rebuilt.

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

No branches or pull requests

2 participants