fix server crash when player with job quits
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user