rock-mod 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,11 +27,11 @@ class RageVehicle extends RageEntity_1.RageEntity {
|
|
|
27
27
|
return this.mpEntity.getColor(1);
|
|
28
28
|
}
|
|
29
29
|
get customPrimaryColor() {
|
|
30
|
-
const [r, g, b] = this.mpEntity.getColorRGB(0);
|
|
30
|
+
const [r, g, b] = this.mpEntity.getColorRGB(0) ?? [0, 0, 0];
|
|
31
31
|
return new utils_1.RGBA(r, g, b);
|
|
32
32
|
}
|
|
33
33
|
get customSecondaryColor() {
|
|
34
|
-
const [r, g, b] = this.mpEntity.getColorRGB(1);
|
|
34
|
+
const [r, g, b] = this.mpEntity.getColorRGB(1) ?? [0, 0, 0];
|
|
35
35
|
return new utils_1.RGBA(r, g, b);
|
|
36
36
|
}
|
|
37
37
|
get driver() {
|
package/package.json
CHANGED