Fix windup suit
This commit is contained in:
parent
fd22ff1975
commit
6af25bd922
@ -183,7 +183,7 @@ public class SetWindup extends GadgetSet
|
|||||||
|
|
||||||
if (_song != null)
|
if (_song != null)
|
||||||
{
|
{
|
||||||
data.NotePlayer = new SingleRunNotePlayer(_song, player);
|
data.NotePlayer = new SingleRunNotePlayer(_song, player).start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Effect is charging
|
// Effect is charging
|
||||||
|
@ -41,12 +41,14 @@ public class SingleRunNotePlayer extends LoopedNotePlayer
|
|||||||
lifetime.register(this);
|
lifetime.register(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void start()
|
public SingleRunNotePlayer start()
|
||||||
{
|
{
|
||||||
if (!_lifetime.isActive())
|
if (!_lifetime.isActive())
|
||||||
{
|
{
|
||||||
_lifetime.start();
|
_lifetime.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void end()
|
public void end()
|
||||||
|
Loading…
Reference in New Issue
Block a user