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;
}
}
if (windmillCount > 1) {
subShapes[0] = enumSubShape.rect;
subShapes[1] = enumSubShape.rect;
if (windmillCount > 2) {
this.internalGenerateShapePatch(rng, shapePatchSize, distanceToOriginInChunks);
return;
}
const definition = this.root.shapeDefinitionMgr.getDefinitionFromSimpleShapes(subShapes);