Fix settings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user