trying not to overwrite ketchup spout

This commit is contained in:
Lily-129 2022-02-12 22:16:19 -05:00 committed by GitHub
parent 3b25e56c0f
commit 920fe7d185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
runAfterLoad(function() {
liquidArray = Object.keys(elements).filter(function(e) {
return elements[e].state == "liquid" || elements[e].state == "gas";
return (elements[e].state == "liquid" || elements[e].state == "gas") && elements[e] != "ketchup";
});
for(i = 0; i < liquidArray.length; i++) {
elements[`${liquidArray[i]}_spout`] = {
@ -14,4 +14,5 @@ runAfterLoad(function() {
temp: elements[liquidArray[i]].temp,
};
};
liquidArray.push("ketchup")
});