From 3e48360632cc6f456326f588f110b842b3657e67 Mon Sep 17 00:00:00 2001 From: Idrees Hassan Date: Wed, 11 Mar 2026 16:36:24 -0700 Subject: [PATCH] Fix colors not updating on refresh --- editor/editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/editor.js b/editor/editor.js index fdb3c37..edd6423 100644 --- a/editor/editor.js +++ b/editor/editor.js @@ -368,6 +368,7 @@ function loadSpeciesHistory() { console.warn("Failed to parse species history from localStorage:", e); } } + draw(); } createColorPicker(); @@ -380,5 +381,6 @@ loadSpeciesHistory(); new Layer(getLayerPixels(pixels, 0, SPRITE_SIZE)), new Layer(getLayerPixels(pixels, 5, SPRITE_SIZE), TAG.TUFT), ]); - commitChange(); + updateJson(); + draw(); })(); \ No newline at end of file