fix job duty

Issue noticed by randomzz, pr did not use proper job.name so went ahead and corrected.
This commit is contained in:
MrNewb committed 2025-08-17 02:32:07 -04:00
1 parent c34b1cce27
commit 9b2b7de2b4
1 file changed
+1 -1
+1 -1
View File
@@ -330,7 +330,7 @@ Framework.SetPlayerDuty = function(src, status)
local xPlayer = Framework.GetPlayer(src)
if not xPlayer then return false end
local job = xPlayer.getJob()
if not job.onDuty then return false end
if job.name == 'unemployed' then return false end
xPlayer.setJob(job.name, job.grade, status)
return true
end