From ca3f4ff02a3e859ba7efd8f5fe41808d469e3350 Mon Sep 17 00:00:00 2001 From: tobspr Date: Thu, 14 May 2020 08:10:15 +0200 Subject: [PATCH] Fix shape hash being incorrectly calculated --- src/js/game/shape_definition.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/game/shape_definition.js b/src/js/game/shape_definition.js index 166b329d..268d9ce0 100644 --- a/src/js/game/shape_definition.js +++ b/src/js/game/shape_definition.js @@ -163,6 +163,10 @@ export class ShapeDefinition extends BasicSerializableObject { id += "--"; } } + + if (layerIndex < this.layers.length - 1) { + id += ":"; + } } this.cachedHash = id; return id;