Fix settings

This commit is contained in:
2024-12-17 14:22:02 +01:00
parent fa3e4ba02a
commit 82ee637a73
3 changed files with 26 additions and 8 deletions

View File

@@ -23,14 +23,14 @@ function shared.CameraSettings.Init()
frame:RegisterEvent("PLAYER_LOGIN")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function(self, event, ...)
SetCameraSpeed(CykaPersistentData.config.camera.speed)
SetCameraSpeed(shared.config.camera.speed)
end)
SlashCmdList["CAMERASETTINGS"] = function(speed)
if speed then CykaPersistentData.config.camera.speed = speed end
SetCameraSpeed(CykaPersistentData.config.camera.speed)
if speed then shared.config.camera.speed = speed end
SetCameraSpeed(shared.config.camera.speed)
end
SLASH_CAMERASETTINGS1 = "/cs"
print("Cyka - Autoloot loaded")
print("Cyka - Camera settings loaded")
end