critical increment fix

This commit is contained in:
Laetitia (O-01-67) 2022-11-12 15:09:28 -05:00 committed by GitHub
parent 7303f073f9
commit 88faa9c871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -2,13 +2,15 @@ var modName = "mods/color_tools.js";
var libraryMod = "mods/code_library.js";
if(enabledMods.includes(libraryMod)) {
function colorToolCounter() {
var colorToolCounter = 0;
function colorToolCounterIncrement() {
if(typeof(colorToolCounter) === "undefined") {
colorToolCounter = 0;
};
colorToolCounter++;
};
colorToolCounterInterval = setInterval(colorToolCounter, 50);
colorToolCounterInterval = setInterval(colorToolCounterIncrement, 50);
elements.multiply_color = {
color: ["#c27070","#c29c70","#c2c270","#70c270","#70c2c2","#7070c2","#c270c2"],