From 3fdc27238ba4542805183e05419ddfe6c46782e7 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 4 Sep 2019 14:34:47 +0200 Subject: [PATCH] Make _doleDivisionFactor local Turn _doleDivisionFactor into a variable local to the module instead of implicitly global. --- sharedPlugins/clusterioMod/dole.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sharedPlugins/clusterioMod/dole.js b/sharedPlugins/clusterioMod/dole.js index 896d7c89..5f1f197b 100644 --- a/sharedPlugins/clusterioMod/dole.js +++ b/sharedPlugins/clusterioMod/dole.js @@ -112,7 +112,8 @@ class neuralDole { } } -_doleDivisionFactor = {}; //If the server regularly can't fulfill requests, this number grows until it can. Then it slowly shrinks back down. +// If the server regularly can't fulfill requests, this number grows until it can. Then it slowly shrinks back down. +let _doleDivisionFactor = {}; function doleDivider({ itemCount, object,