Fix windup suit

This commit is contained in:
Sam 2018-09-13 14:20:57 +01:00 committed by Alexander Meech
parent fd22ff1975
commit 6af25bd922
2 changed files with 4 additions and 2 deletions

View File

@ -183,7 +183,7 @@ public class SetWindup extends GadgetSet
if (_song != null)
{
data.NotePlayer = new SingleRunNotePlayer(_song, player);
data.NotePlayer = new SingleRunNotePlayer(_song, player).start();
}
}
// Effect is charging

View File

@ -41,12 +41,14 @@ public class SingleRunNotePlayer extends LoopedNotePlayer
lifetime.register(this);
}
public void start()
public SingleRunNotePlayer start()
{
if (!_lifetime.isActive())
{
_lifetime.start();
}
return this;
}
public void end()