With the current code, new schematics will not overwrite past instruments in a song if it is not used in the new song.
Load Perry The Platypus Theme Schematic into the world.
Try to load Tetris A Theme with the current code.
As you can see, the schematic outline doesn't go past bass drum, essentially leaving the snare drum section and onwards untouched with the Perry the Platypus theme intact, which accidentally mixes the 2 songs together.
Load Tetris A Theme with the modified code.
The schematic outline now properly extends all the way to the end, erasing all traces of the Perry the Platypus Theme from the Tetris A Theme.
With the current code, new schematics will not overwrite past instruments in a song if it is not used in the new song.
Load Perry The Platypus Theme Schematic into the world.
Try to load Tetris A Theme with the current code. As you can see, the schematic outline doesn't go past bass drum, essentially leaving the snare drum section and onwards untouched with the Perry the Platypus theme intact, which accidentally mixes the 2 songs together.
Load Tetris A Theme with the modified code. The schematic outline now properly extends all the way to the end, erasing all traces of the Perry the Platypus Theme from the Tetris A Theme.
Schematics used: schems.zip
Tested on Litematica and WorldEdit.