Skip to content

Commit

Permalink
Merge pull request #5971 from Gliese852/eq2-quick-fix
Browse files Browse the repository at this point in the history
Fix the ability to start from all start positions
  • Loading branch information
fluffyfreak authored Nov 17, 2024
2 parents b928668 + 5ab3532 commit fb6e5f8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions data/pigui/modules/new-game-window/class.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,16 @@ local function startGame(gameParams)
-- print("Installing equipment {} (proto: {}) into slot {}" % { item, proto, slot })
if type(slot) == "string" then
local slotHandle = equipSet:GetSlotHandle(slot)
assert(slotHandle)
if slotHandle then
local inst = proto:Instance()

local inst = proto:Instance()

if slotHandle.count then
inst:SetCount(slotHandle.count)
end
if slotHandle.count then
inst:SetCount(slotHandle.count)
end

if not equipSet:Install(inst, slotHandle) then
print("Couldn't install equipment item {} into slot {}" % { inst:GetName(), slot })
if not equipSet:Install(inst, slotHandle) then
print("Couldn't install equipment item {} into slot {}" % { inst:GetName(), slot })
end
end
end
end
Expand Down

0 comments on commit fb6e5f8

Please sign in to comment.