From 2bbf52dafbaf8160f25c18920dcc5248a5187cc0 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Sun, 19 May 2024 19:40:22 -0400 Subject: [PATCH] mod hotfix --- mods/changeTempReactionParameter.js | 2 +- mods/customexplosion.js | 2 +- mods/morechemistry.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/changeTempReactionParameter.js b/mods/changeTempReactionParameter.js index 59d1ed3f..7ec37754 100644 --- a/mods/changeTempReactionParameter.js +++ b/mods/changeTempReactionParameter.js @@ -13,7 +13,7 @@ function reactPixels(pixel1,pixel2) { if (r.tempMax !== undefined && pixel1.temp > r.tempMax) { return false; } - if (r.charged && !pixel.charge) { + if (r.charged && !pixel1.charge) { return false; } if (r.chance !== undefined && Math.random() > r.chance) { diff --git a/mods/customexplosion.js b/mods/customexplosion.js index ecfcfc66..c26e67ec 100644 --- a/mods/customexplosion.js +++ b/mods/customexplosion.js @@ -31,7 +31,7 @@ function reactPixels(pixel1,pixel2) { if (r.burning2 !== undefined && Boolean(pixel2.burning) !== r.burning2) { return false; } - if (r.charged && !pixel.charge) { + if (r.charged && !pixel1.charge) { return false; } if (r.chance !== undefined && Math.random() > r.chance) { diff --git a/mods/morechemistry.js b/mods/morechemistry.js index 59a57b3e..3d793eea 100644 --- a/mods/morechemistry.js +++ b/mods/morechemistry.js @@ -42,7 +42,7 @@ function reactPixels(pixel1,pixel2) { if (r.burning2 !== undefined && Boolean(pixel2.burning) !== r.burning2) { return false; } - if (r.charged && !pixel.charge) { + if (r.charged && !pixel1.charge) { return false; } if (r.chance !== undefined && Math.random() > r.chance) {