Skip to content

Commit

Permalink
fix records consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheackraze committed Mar 4, 2024
1 parent 1608cad commit f003a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Shipyard/Systems/ShipyardSystem.Consoles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private void OnPurchaseMessage(EntityUid uid, ShipyardConsoleComponent component
if (!_records.TryGetRecord<GeneralStationRecord>(stationUid, keyStorage.Key.Value, out var record))
continue;

_records.RemoveRecord(stationUid, keyStorage.Key.Value);
//_records.RemoveRecord(stationUid, keyStorage.Key.Value);
_records.CreateGeneralRecord((EntityUid) shuttleStation, targetId, record.Name, record.Age, record.Species, record.Gender, $"Captain", record.Fingerprint, record.DNA);
recSuccess = true;
break;
Expand Down Expand Up @@ -311,7 +311,7 @@ public void OnSellMessage(EntityUid uid, ShipyardConsoleComponent component, Shi
&& keyStorage.Key.Value.OriginStation == shuttleStation
&& _records.TryGetRecord<GeneralStationRecord>(shuttleStation, keyStorage.Key.Value, out var record))
{
_records.RemoveRecord(shuttleStation, keyStorage.Key.Value);
//_records.RemoveRecord(shuttleStation, keyStorage.Key.Value);
_records.CreateGeneralRecord(stationUid, targetId, record.Name, record.Age, record.Species, record.Gender, $"Passenger", record.Fingerprint, record.DNA);
_records.Synchronize(stationUid);
}
Expand Down

0 comments on commit f003a71

Please sign in to comment.