Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fixes #104
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluviolithic committed Dec 3, 2023
1 parent 2e723c6 commit 5b95e18
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/client/Areas/TeleportUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ function TeleportUI:_initialize()
),
function()
Remotes.Client:Get("PurchaseTeleporter"):SendToServer(area.Name)
end
end,
self
)
return
end
Expand Down
5 changes: 4 additions & 1 deletion src/client/UI/ConfirmationUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ local interfaces = require(StarterPlayer.StarterPlayerScripts.Client.UI.Collidab
local destructor = Janitor.new()
local currentConfirmationUI

return function(confirmationUI, message, callback)
return function(confirmationUI, message, callback, interfaceToSkip)
for interface in interfaces do
if interface == interfaceToSkip then
continue
end
if Janitor.Is(interface) then
interface:Cleanup()
continue
Expand Down
12 changes: 8 additions & 4 deletions src/client/UI/Inventories/PetInventory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ function PetInventory:_initialize(): ()
function()
Remotes.Client:Get("UnequipAllPets"):SendToServer()
self:_clearFocusedDisplay()
end
end,
self
)
end)

Expand All @@ -95,7 +96,8 @@ function PetInventory:_initialize(): ()
function()
Remotes.Client:Get("EquipBestPets"):SendToServer()
self:_clearFocusedDisplay()
end
end,
self
)
end)

Expand All @@ -109,7 +111,8 @@ function PetInventory:_initialize(): ()
function()
Remotes.Client:Get("EvolveAllPets"):SendToServer()
self:_clearFocusedDisplay()
end
end,
self
)
end)

Expand All @@ -123,7 +126,8 @@ function PetInventory:_initialize(): ()
function()
Remotes.Client:Get("DeleteAllPets"):SendToServer()
self:_clearFocusedDisplay()
end
end,
self
)
end)

Expand Down

0 comments on commit 5b95e18

Please sign in to comment.