mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Fix tslint errors
This commit is contained in:
@@ -143,11 +143,7 @@ export class ShapeDefinitionManager extends BasicSerializableObject {
|
||||
*/
|
||||
getDefinitionFromSimpleShapes(subShapes, color = enumColors.uncolored) {
|
||||
const shapeLayer = /** @type {import("./shape_definition").ShapeLayer} */ (subShapes.map(
|
||||
subShape => ({
|
||||
subShape,
|
||||
rotation: 0,
|
||||
color,
|
||||
})
|
||||
subShape => ({ subShape, color })
|
||||
));
|
||||
|
||||
return this.registerOrReturnHandle(new ShapeDefinition({ layers: [shapeLayer] }));
|
||||
|
||||
Reference in New Issue
Block a user