Preserve the color of sokoban blocks on cloning
This commit is contained in:
parent
34e430e8a1
commit
4ebe5c1149
@ -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';
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user