Syntax fix

This commit is contained in:
Neshura 2024-05-20 13:23:08 +02:00
parent 0268359eef
commit 9cda1d3434
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -86,9 +86,9 @@
return volume; return volume;
}) })
let maxWeight = derived.by(totalThrust / (gravity * 9.81)) let maxWeight = derived(totalThrust / (gravity * 9.81))
let maxCargoWeight = $derived.by(maxWeight -= totalVolume * weightPerVolume) let maxCargoWeight = $derived(maxWeight -= totalVolume * weightPerVolume)
function weightConversion(weight: number): string { function weightConversion(weight: number): string {
if (weight > 1000) { if (weight > 1000) {