From b702b99150b7804d765ba22ddb1d1178316b73a1 Mon Sep 17 00:00:00 2001 From: EmeraldBlock <69981203+EmeraldBlock@users.noreply.github.com> Date: Fri, 9 Oct 2020 15:10:38 -0500 Subject: [PATCH] Fix stacking Also formats other 2-input keys --- src/js/game/shape_definition_manager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/game/shape_definition_manager.js b/src/js/game/shape_definition_manager.js index 86723fcd..7beb4af4 100644 --- a/src/js/game/shape_definition_manager.js +++ b/src/js/game/shape_definition_manager.js @@ -185,7 +185,7 @@ export class ShapeDefinitionManager extends BasicSerializableObject { * @returns {ShapeDefinition} */ shapeActionStack(lowerDefinition, upperDefinition) { - const key = "stack:" + lowerDefinition.getHash() + ":" + upperDefinition.getHash(); + const key = "stack:" + lowerDefinition.getHash() + "+" + upperDefinition.getHash(); if (this.operationCache[key]) { return /** @type {ShapeDefinition} */ (this.operationCache[key]); } @@ -202,7 +202,7 @@ export class ShapeDefinitionManager extends BasicSerializableObject { * @returns {ShapeDefinition} */ shapeActionPaintWith(definition, color) { - const key = "paint:" + definition.getHash() + ":" + color; + const key = "paint:" + definition.getHash() + "+" + color; if (this.operationCache[key]) { return /** @type {ShapeDefinition} */ (this.operationCache[key]); } @@ -219,7 +219,7 @@ export class ShapeDefinitionManager extends BasicSerializableObject { * @returns {ShapeDefinition} */ shapeActionPaintWith4Colors(definition, colors) { - const key = "paint4:" + definition.getHash() + ":" + colors.join(","); + const key = "paint4:" + definition.getHash() + "+" + colors.join(","); if (this.operationCache[key]) { return /** @type {ShapeDefinition} */ (this.operationCache[key]); }