Fix instruments for engine changes, fixes program change bug. (#7365)

This commit is contained in:
Vera Aguilera Puerto
2022-04-08 16:22:05 +02:00
committed by GitHub
parent a4d55235cc
commit 6e73e94cc6
8 changed files with 327 additions and 322 deletions

View File

@@ -23,7 +23,7 @@ public abstract class SharedInstrumentSystem : EntitySystem
{
args.State =
new InstrumentState(instrument.Playing, instrument.InstrumentProgram, instrument.InstrumentBank,
instrument.AllowPercussion, instrument.AllowProgramChange, instrument.RespectMidiLimits, instrument.LastSequencerTick);
instrument.AllowPercussion, instrument.AllowProgramChange, instrument.RespectMidiLimits);
}
private void OnHandleState(EntityUid uid, SharedInstrumentComponent instrument, ref ComponentHandleState args)