From 1b60f18aeb8b70b976e0b07010e132e001c01ae8 Mon Sep 17 00:00:00 2001 From: IrcDirk Date: Thu, 15 Feb 2024 23:21:40 +0100 Subject: [PATCH] Fixing @DFortun81 PR :) --- Carbonite/NxMap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Carbonite/NxMap.lua b/Carbonite/NxMap.lua index 5a53ac5..b68104a 100644 --- a/Carbonite/NxMap.lua +++ b/Carbonite/NxMap.lua @@ -10074,7 +10074,7 @@ function Nx.Map:AddTarget (target) if Nx.Notes then local zx, zy = self:GetZonePos (target.MapId, target.TargetMX, target.TargetMY) - Nx.Notes:Record (options.keep and "Target" or "TargetS", target.TargetName, target.MapId, zx, zy) + Nx.Notes:Record (target.keep and "Target" or "TargetS", target.TargetName, target.MapId, zx, zy) end return target @@ -10087,7 +10087,7 @@ end function Nx.Map:SetTarget (typ, x1, y1, x2, y2, tex, id, name, keep, mapId) -- This is a legacy function, for more extensibility, use the Nx.Map:AddTarget (target) function instead - return Nx.Map:AddTarget({ + return self:AddTarget({ MapId = mapId, TargetType = typ, TargetX1 = x1,