I was doing some code clean up, fixing some things, and then I broke something. Lines 155 and 214 are trying to re-attach existing functions to the scripts, if they exist. I need closing braces, but whatever I did is wrong.
ShowWorldPin() has a few obvious typos (including in line 155)
1. handers instead of handlers
Pin:SetScript("OnEnter", handers[Pin] end) -- what's that end doing in there?
Line 214 also has an extra end.
These might fix it (warning drycoded)
local function ShowWorldPin(pin)
local Pin = WorldMapPins[pin]
if Pin then
if handlers[Pin] then
Pin.visible = true
for worldIndex, worldPin in pairs(WorldMapPins) do
if worldPin.visible then -- respect settings
if handlers[worldPin] then