mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-02 19:53:15 +00:00
dont infinitely add new props, replace the old ones
This commit is contained in:
parent
41cb3d93b2
commit
2baac0e983
|
@ -632,10 +632,10 @@ class StoryMenuState extends MusicBeatState
|
|||
|
||||
function updateProps():Void
|
||||
{
|
||||
for (prop in currentLevel.buildProps(levelProps.members))
|
||||
for (ind => prop in currentLevel.buildProps(levelProps.members))
|
||||
{
|
||||
prop.zIndex = 1000;
|
||||
levelProps.add(prop);
|
||||
if (levelProps.members[ind] != prop) levelProps.replace(levelProps.members[ind], prop) ?? levelProps.add(prop);
|
||||
}
|
||||
|
||||
refresh();
|
||||
|
|
Loading…
Reference in a new issue