From ca2136544cef3ebba2fd3f1ada08fa2fdedc49c4 Mon Sep 17 00:00:00 2001 From: Cmdr McDonald Date: Wed, 30 Nov 2016 15:08:32 +0000 Subject: [PATCH] Handle unmodifiable values --- src/app/shipyard/Module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shipyard/Module.js b/src/app/shipyard/Module.js index a95dc300..bf38e8ec 100755 --- a/src/app/shipyard/Module.js +++ b/src/app/shipyard/Module.js @@ -68,7 +68,7 @@ export default class Module { if (result != null) { const modification = Modifications.modifications[name]; if (!modification) { - throw 'Unknown modification ' + name; + return result; } // We store percentages as decimals, so to get them back we need to divide by 10000. Otherwise // we divide by 100. Both ways we end up with a value with two decimal places