change var name for consistency

This commit is contained in:
Laetitia (O-01-67) 2022-11-11 15:55:37 -05:00 committed by GitHub
parent 5eb2da81fe
commit 748e0171e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -336,7 +336,7 @@ if(enabledMods.includes(onTryMoveIntoMod)) {
};
if(pixel.attached) {
var attachCoords = [pixel.x + pixel.attachOffset[0], pixel.y + pixel.attachOffset[1]];
var attachCoords = [pixel.x + pixel.attachOffsets[0], pixel.y + pixel.attachOffset[1]];
if(isEmpty(attachCoords[0],attachCoords[1],false)) { //consider OOB full
pixel.attached = false;
};
@ -540,7 +540,6 @@ if(enabledMods.includes(onTryMoveIntoMod)) {
density: 593,
tick: functi
};*/
} else {
alert(`The ${onTryMoveIntoMod} mod is required and has been automatically inserted (reload for this to take effect).`)
enabledMods.splice(enabledMods.indexOf(modName),0,onTryMoveIntoMod)