View Bug Report
Import function not working with new format pins
Bug #: 3096
File: Harven's Custom Map Pins (Markers)
Date: 08/08/20 07:35 PM
By: Berun
Status: Unconfirmed
There's a bug in the code for importing the new format pins. Trying to run /importpins indicates the function is trying to read a nil value. The error is in the code near line 448.

Code:
if not self.sv.pins[k][cfloor][key] then
	self.sv.pins[k][cfloor][key] = {
		map = v.map,
		description = v.description,
		x = v.x,
		y = v.y,
		color = {
			v.color[1],
			v.color[2],
			v.color[3],
			v.color[4],
		},
		icon = v.icon
	}
else
	CHAT_SYSTEM:AddMessage("A pin is already present at that location: "..pinData.x..", "..pinData.y.." "..pinData.description)
end
All the v.* variables should be pinData.* (as used in the CHAT_SYSTEM line).