fix server crash when player with job quits

This commit is contained in:
hydrant
2019-06-23 20:31:36 +02:00
parent 6caee0f2ec
commit 8ab086f011
3 changed files with 11 additions and 4 deletions

View File

@@ -541,7 +541,9 @@ export default function vehicleSync() {
//Make doors breakable again
setTimeout(() => {
for (x = 0; x < 8; x++) {
entity.setDoorBreakable(x, true);
if (entity) {
entity.setDoorBreakable(x, true);
}
}
}, 1500);
}