Scan new "entities" folders (>=1.17), fix scan of "poi" folders #167
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello ! ^^
This PR is the following of #166 (Even if it works without) and ends issue #165 (Please read it first).
It also fixes the scan of the
poi
folder for dimension.Main changes :
poi
isn't considered as a dimension anymore. I created a new system (Like dimensions) called "region files type", with currently 3 types : Regions (Level), POIs and Entities. Each dimension (Including the overworld) can have those 3 types or MCA files (Respectively stored inregion
,poi
andentities
).RegionSet
objects are differentiated by dimension AND type. This is especially used for wrong located or corrupted chunks replacement from a backup.scan_chunk()
can now recognize and analyze MCA files fromentities
. The differentiating factor is the presence of theEntities
tag at the root of the chunk. For a region/level file, it is in theLevel
tag.get_number_regions()
now differentiate regions by type. It now returns a dictionary.delete_entities()
can be also used for entities MCA files.I didn't test, but this commit should also fix issue #162.
Really important note, as last time : I am still not familiar with the Region-Fixer code and architecture, so this commit can possibly lead to problems and bugs. Thanks @Fenixin to be careful before merging this PR. ^^
Have a nice day ! ^^