1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

fix windmill shape generation

Signed-off-by: noctilucentgames <noctilucentgames@gmail.com>
This commit is contained in:
noctilucentgames 2020-10-26 16:48:47 +00:00
parent 0146aa91bb
commit b855613fcf

View File

@ -224,9 +224,9 @@ export class MapChunk {
++windmillCount; ++windmillCount;
} }
} }
if (windmillCount > 1) { if (windmillCount > 2) {
subShapes[0] = enumSubShape.rect; this.internalGenerateShapePatch(rng, shapePatchSize, distanceToOriginInChunks);
subShapes[1] = enumSubShape.rect; return;
} }
const definition = this.root.shapeDefinitionMgr.getDefinitionFromSimpleShapes(subShapes); const definition = this.root.shapeDefinitionMgr.getDefinitionFromSimpleShapes(subShapes);