Preserve the color of sokoban blocks on cloning

This commit is contained in:
Eevee (Evelyn Woods) 2021-06-28 00:32:59 -06:00 committed by Eevee (Evelyn Woods)
parent 34e430e8a1
commit 4ebe5c1149

View File

@ -1377,6 +1377,9 @@ const TILE_TYPES = {
populate_defaults(me) {
me.color = 'red';
},
on_clone(me, original) {
me.color = original.color;
},
visual_state(me) {
return me.color ?? 'red';
},