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

Merge branch 'copy-paste' into puzzle

This commit is contained in:
Sense101 2021-06-24 18:28:19 +01:00
commit a16d11fbf6

View File

@ -158,10 +158,9 @@ export class MetaBuilding {
/** /**
* Returns whether this building is rotateable * Returns whether this building is rotateable
* @param {string} variant
* @returns {boolean} * @returns {boolean}
*/ */
getIsRotateable(variant) { getIsRotateable() {
return true; return true;
} }
@ -243,7 +242,7 @@ export class MetaBuilding {
* @return {{ rotation: number, rotationVariant: number, connectedEntities?: Array<Entity> }} * @return {{ rotation: number, rotationVariant: number, connectedEntities?: Array<Entity> }}
*/ */
computeOptimalDirectionAndRotationVariantAtTile({ root, tile, rotation, variant, layer }) { computeOptimalDirectionAndRotationVariantAtTile({ root, tile, rotation, variant, layer }) {
if (!this.getIsRotateable(variant)) { if (!this.getIsRotateable()) {
return { return {
rotation: 0, rotation: 0,
rotationVariant: 0, rotationVariant: 0,