mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-03 01:27:26 +00:00
Allow admins to change instrument values with VV.
Just set DirtyRenderer to true after your changes are done, on the server.
This commit is contained in:
@@ -149,6 +149,12 @@ public sealed partial class InstrumentSystem : SharedInstrumentSystem
|
||||
|
||||
foreach (var instrument in EntityManager.EntityQuery<InstrumentComponent>(true))
|
||||
{
|
||||
if (instrument.DirtyRenderer)
|
||||
{
|
||||
instrument.Dirty();
|
||||
instrument.DirtyRenderer = false;
|
||||
}
|
||||
|
||||
if ((instrument.BatchesDropped >= MaxMidiBatchesDropped
|
||||
|| instrument.LaggedBatches >= MaxMidiLaggedBatches)
|
||||
&& instrument.InstrumentPlayer != null && instrument.RespectMidiLimits)
|
||||
|
||||
Reference in New Issue
Block a user