Fix job type
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
// TYPE: Client (JavaScript)
|
// TYPE: Client (JavaScript)
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
let localPlayerJobType = 0;
|
let localPlayerJobType = -1;
|
||||||
let localPlayerWorking = false;
|
let localPlayerWorking = false;
|
||||||
let jobRouteLocationBlip = null;
|
let jobRouteLocationBlip = null;
|
||||||
let jobRouteLocationSphere = null;
|
let jobRouteLocationSphere = null;
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ function renderJobLabel(name, position, jobType) {
|
|||||||
text = getLocaleString("StartWorkLabel", "/startwork");
|
text = getLocaleString("StartWorkLabel", "/startwork");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (localPlayerJobType == 0) {
|
if (localPlayerJobType == -1) {
|
||||||
text = getLocaleString("TakeJobLabel", "/takejob");
|
text = getLocaleString("TakeJobLabel", "/takejob");
|
||||||
} else {
|
} else {
|
||||||
text = getLocaleString("NotYourJobLabel", "/quitjob");
|
text = getLocaleString("NotYourJobLabel", "/quitjob");
|
||||||
|
|||||||
Reference in New Issue
Block a user