File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,14 @@ function Lobby:Leave(player)
122122 self .host = self .players [1 ]
123123 self .host :ToastMessage (" You are now the host." , 300 )
124124 else
125- self .universe .ap_client .running = false
126- self .universe .ap_client .ap = nil
125+ self .universe .ap_client_initialized = false
126+ if self .universe .ap_client ~= nil then
127+ if self .universe .ap_client .ap ~= nil then
128+ self .universe .ap_client .ap = nil
129+ end
130+ self .universe .ap_client .running = false
131+ self .universe .ap_client = nil
132+ end
127133 collectgarbage (" collect" )
128134 lobbyUniverse :RemoveLobby (self )
129135 end
Original file line number Diff line number Diff line change 101101
102102function LobbyListView :SelectedLobby (lobby )
103103 self .textArea .Text = " Host: " .. lobby .host :Username ()
104- self .gamemodeTextArea .Text = " Friendly fire: " .. (lobby .options .friendlyFire and " On" or " Off" )
105104end
106105
107106function LobbyListView :OnControllerInputPressed (input )
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ function RandoUniverse:DistributeGiveItem(item_id)
8989 end
9090
9191 if Item .GetById (item_id ).isWeapon and item_id ~= 0x0e and item_id ~= 0x12 and item_id ~= 0x09 and item_id ~= 0x15 then -- is weapon that uses ammo
92- if # self .buyable_weapons == 1 then
92+ if # self .buyable_ammo == 0 then
9393 table.insert (self .buyable_ammo , item_id )
9494 self :DistributeVendorContents ()
9595 else
You can’t perform that action at this time.
0 commit comments