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) {