Update vehicle_control_device.java

Small adjustment here to make this more logical, show "Lava Resistance: 100%" attribute if the template already has resistance OR if the lava resistance kit has been used on the vehicle, not just if the kit has been used.
This commit is contained in:
AconiteX
2021-09-16 13:32:13 -04:00
parent 1fdcf9f219
commit e88dc114fc

View File

@@ -378,7 +378,7 @@ public class vehicle_control_device extends script.base_script
return SCRIPT_CONTINUE;
}
}
if(hasObjVar(self, vehicle.VAR_LAVA_RESISTANT))
if(vehicle.isLavaResistant(self))
{
names[idx] = "lava_resistance";
attribs[idx] = "100%";