Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ExportStructures/EquipmentSpec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,13 @@ end
-- Create a new EquipmentSpec table.
local function CreateEquipmentSpec()
local items = setmetatable({}, EquipmentSpecItemsMeta)
local equipment = setmetatable({ items = items, version = Env.VERSION }, EquipmentSpecMeta)

local equipment = nil;
if Env.IS_CLASSIC_TBC then
equipment = setmetatable({ items = items}, EquipmentSpecMeta)
Copy link
Copy Markdown
Contributor

@1337LutZ 1337LutZ Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only fixes it for the Old Sim. This change can potentially break the new TBC Sim if there's Proto changes introduced.

EDIT: I was wrong, this version property isn't even used anymore

else
equipment = setmetatable({ items = items, version = Env.VERSION }, EquipmentSpecMeta)
end
return equipment
end

Expand Down