Skip to content

Commit

Permalink
Black Market ATM fix (#297)
Browse files Browse the repository at this point in the history
* first implement

* more

* schooner

* pirate atm

* fin
  • Loading branch information
Cheackraze committed Sep 7, 2023
1 parent 544947f commit 7f77e68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Content.Server/_NF/Bank/ATMSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private void OnDeposit(EntityUid uid, BankATMComponent component, BankDepositMes
private void OnCashSlotChanged(EntityUid uid, BankATMComponent component, ContainerModifiedMessage args)
{

var bankUi = _uiSystem.GetUiOrNull(uid, BankATMMenuUiKey.ATM);
var bankUi = _uiSystem.GetUiOrNull(uid, BankATMMenuUiKey.ATM) ?? _uiSystem.GetUiOrNull(uid, BankATMMenuUiKey.BlackMarket);

var uiUser = bankUi!.SubscribedSessions.FirstOrDefault();
GetInsertedCashAmount(component, out var deposit);
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/_NF/GameRule/NfAdventureRuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private void OnStartup(RoundStartingEvent ev)

if (_map.TryLoad(mapId, cove, out var depotUid6s, new MapLoadOptions
{
Offset = _random.NextVector2(2250f, 5800f)
Offset = _random.NextVector2(2250f, 4600f)
}))
{
if (_prototypeManager.TryIndex<GameMapPrototype>("Cove", out var stationProto))
Expand Down

0 comments on commit 7f77e68

Please sign in to comment.