Slightly reduce memory usage (?) for undoing transmutation

This commit is contained in:
Eevee (Evelyn Woods) 2024-04-11 01:53:34 -06:00
parent f417162f6f
commit fd590f8353

View File

@ -2814,8 +2814,7 @@ export class Level extends LevelInterface {
}); });
} }
else { else {
tile.type = new_type; this._set_tile_prop(tile, 'type', new_type);
this._push_pending_undo(() => tile.type = old_type);
} }
// For transmuting into an animation, set up the timer immediately // For transmuting into an animation, set up the timer immediately