Skip to content

Commit 3fe138a

Browse files
committed
[FlashpointManager] Prevent database component from receiving updates
1 parent 756d91d commit 3fe138a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

FlashpointManager/src/Common.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -308,19 +308,19 @@ public static void SyncManager(bool init = false)
308308
if (node.Name != "component") return;
309309

310310
var component = new Component(node);
311-
bool update = false;
312311

313-
if (ComponentTracker.Downloaded.Exists(c => c.ID == component.ID))
312+
bool outdated = false;
313+
bool downloaded = ComponentTracker.Downloaded.Exists(c => c.ID == component.ID);
314+
315+
if (downloaded)
314316
{
315317
string localHash = File.ReadLines(component.InfoFile).First().Split(' ')[0];
316-
update = localHash != component.Hash;
317-
}
318-
else if (component.Required)
319-
{
320-
update = true;
318+
outdated = localHash != component.Hash && component.ID != "core-database";
321319
}
320+
321+
if (!downloaded && component.Required) outdated = true;
322322

323-
if (update)
323+
if (outdated)
324324
{
325325
ComponentTracker.Outdated.Add(component);
326326

0 commit comments

Comments
 (0)