diff --git a/src/client/Areas/TeleportUI.lua b/src/client/Areas/TeleportUI.lua index 59c3984..1411d77 100644 --- a/src/client/Areas/TeleportUI.lua +++ b/src/client/Areas/TeleportUI.lua @@ -131,7 +131,8 @@ function TeleportUI:_initialize() ), function() Remotes.Client:Get("PurchaseTeleporter"):SendToServer(area.Name) - end + end, + self ) return end diff --git a/src/client/UI/ConfirmationUI.lua b/src/client/UI/ConfirmationUI.lua index 3801955..15c9b01 100644 --- a/src/client/UI/ConfirmationUI.lua +++ b/src/client/UI/ConfirmationUI.lua @@ -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 diff --git a/src/client/UI/Inventories/PetInventory.lua b/src/client/UI/Inventories/PetInventory.lua index 086c5c3..6f40f2d 100644 --- a/src/client/UI/Inventories/PetInventory.lua +++ b/src/client/UI/Inventories/PetInventory.lua @@ -81,7 +81,8 @@ function PetInventory:_initialize(): () function() Remotes.Client:Get("UnequipAllPets"):SendToServer() self:_clearFocusedDisplay() - end + end, + self ) end) @@ -95,7 +96,8 @@ function PetInventory:_initialize(): () function() Remotes.Client:Get("EquipBestPets"):SendToServer() self:_clearFocusedDisplay() - end + end, + self ) end) @@ -109,7 +111,8 @@ function PetInventory:_initialize(): () function() Remotes.Client:Get("EvolveAllPets"):SendToServer() self:_clearFocusedDisplay() - end + end, + self ) end) @@ -123,7 +126,8 @@ function PetInventory:_initialize(): () function() Remotes.Client:Get("DeleteAllPets"):SendToServer() self:_clearFocusedDisplay() - end + end, + self ) end)