fix replace issue

This commit is contained in:
Laetitia (O-01-67) 2023-03-01 10:18:10 -05:00 committed by GitHub
parent 978aaa2e87
commit 9e61404244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -538,7 +538,7 @@ if(enabledMods.includes(groundMod) && enabledMods.includes(libHookTickMod)) {
info.nellFireColor
*/
function doHellfire(pixel) {
function doNellfire(pixel) {
var info = elements[pixel.element];
if((info.nellfireImmune && info.nellfireImmune !== "torch") && pixel.nellburn) {
delete pixel.nellburn;
@ -706,7 +706,7 @@ if(enabledMods.includes(groundMod) && enabledMods.includes(libHookTickMod)) {
if(paused) { return };
var nellfirePixels = currentPixels.filter(function(pixel) { return pixel.nellburn });
for(var pixel in nellfirePixels) {
doHellfire(nellfirePixels[pixel]);
doNellfire(nellfirePixels[pixel]);
};
});
} else {
@ -714,4 +714,4 @@ if(enabledMods.includes(groundMod) && enabledMods.includes(libHookTickMod)) {
enabledMods.splice(enabledMods.indexOf(modName),0,libHookTickMod);
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
alert(`The ${groundMod} and ${libHookTickMod} mods are required and have been automatically inserted (reload for this to take effect).`);
};
};