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

Commit

Permalink
Closes #84
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluviolithic committed Nov 24, 2023
1 parent 82779cc commit 6ed9553
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/UI/Inventories/PetInventory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,15 @@ function PetInventory:Refresh()
and self._ui.Background.Storage:FindFirstChild "Buy"
then
self._ui.Background.Storage.Buy:Destroy()
self._ui.Background.Storage.Amount.Position = UDim2.fromScale(0.352, 0.113)
end

if
selectors.getStat(store:getState(), player.Name, "MaxPetEquipCount") == 6
and self._ui.Background.Equipped:FindFirstChild "Buy"
then
self._ui.Background.Equipped.Buy:Destroy()
self._ui.Background.Storage.Amount.Position = UDim2.fromScale(0.352, 0.113)
end

-- clear the inventory
Expand Down

0 comments on commit 6ed9553

Please sign in to comment.