shapez.io
shapez.io copied to clipboard
Factor out windmill check in shape patch generation
trafficstars
Since https://github.com/tobspr/shapez.io/issues/1444 (PR https://github.com/tobspr/shapez.io/pull/1445) was rejected, this moves that code into a method to allow mods to change how many windmill sub‑shapes are allowed to spawn, and also limit any custom mod sub‑shapes that are allowed to spawn in the world, without replacing the entire internalGenerateShapePatch(rng, shapePatchSize, distanceToOriginInChunks) method.