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

Swap cutter outputs since this makes more sense logically

This commit is contained in:
tobspr 2020-05-15 11:15:42 +02:00
parent 4e97ec281e
commit 3d2af20edd

View File

@ -60,8 +60,8 @@ export class ShapeDefinitionManager extends BasicSerializableObject {
if (this.operationCache[key]) { if (this.operationCache[key]) {
return /** @type {[ShapeDefinition, ShapeDefinition]} */ (this.operationCache[key]); return /** @type {[ShapeDefinition, ShapeDefinition]} */ (this.operationCache[key]);
} }
const rightSide = definition.cloneFilteredByQuadrants([0, 1]); const rightSide = definition.cloneFilteredByQuadrants([2, 3]);
const leftSide = definition.cloneFilteredByQuadrants([2, 3]); const leftSide = definition.cloneFilteredByQuadrants([0, 1]);
return /** @type {[ShapeDefinition, ShapeDefinition]} */ (this.operationCache[key] = [ return /** @type {[ShapeDefinition, ShapeDefinition]} */ (this.operationCache[key] = [
this.registerOrReturnHandle(rightSide), this.registerOrReturnHandle(rightSide),