Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 0770cad

Browse files
committed
Fix minor stuff with the HUD class
1 parent 5fdcd7f commit 0770cad

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/HUD Class.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function HUD:new(options)
2525

2626
local oldPos = newObj.database:getvalue('HUDs Info', newObj.uniqueId .. '.position')
2727
if oldPos ~= nil then
28-
newObj.startPosition = Point:new(oldPos:explode(';'))
28+
newObj.startPosition = newObj.posRelativeTo() + Point:new(oldPos:explode(';'))
2929
end
3030
end
3131

@@ -91,9 +91,5 @@ function HUD:drag()
9191

9292
self:setPosition((curMouse - self.mousePos) + getposition())
9393
self.mousePos = curMouse
94-
95-
if self.savePosition then
96-
self:updateSavedPosition()
97-
end
9894
end
9995
end

0 commit comments

Comments
 (0)