Fix multiple research consoles exploit (#34334)
This commit is contained in:
@@ -55,3 +55,10 @@ public sealed partial class TechnologyDatabaseComponent : Component
|
||||
/// </remarks>
|
||||
[ByRefEvent]
|
||||
public readonly record struct TechnologyDatabaseModifiedEvent;
|
||||
|
||||
/// <summary>
|
||||
/// Event raised on a database after being synchronized
|
||||
/// with the values from another database.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public readonly record struct TechnologyDatabaseSynchronizedEvent;
|
||||
|
||||
@@ -227,6 +227,9 @@ public abstract class SharedResearchSystem : EntitySystem
|
||||
return;
|
||||
component.MainDiscipline = prototype.Discipline;
|
||||
Dirty(uid, component);
|
||||
|
||||
var ev = new TechnologyDatabaseModifiedEvent();
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user