/locate finds Duloc and Shrek's Swamp #2
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/locate-structures"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
/locate structure perfectplace:dulocand... perfectplace:shreks_swampfound nothing: both useSingleNearOriginPlacement, and vanilla only walks concentric-ring and random-spread placements, so it never asks the mod where its structures are.mixin/ChunkGeneratorLocateMixin.javainjects intoChunkGenerator.findNearestMapStructureand asksPPStructures.locateGeneratedwhen the placed set uses one of our placements.compat/world/StructureCompat.javahidesgetStartForStructurelosingSectionPosin 26.x./locatekeeps working for every vanilla structure.Known limitation: a tag that mixes a mod structure and a vanilla one returns the mod's structure even when the vanilla one is closer.
Builds green on all six nodes (CI run #6); the mixin has not been exercised on a running server yet.