added check to stop error from masking other errors

This commit is contained in:
Lily-129 2022-02-15 08:03:45 -05:00 committed by GitHub
parent cbccd2b632
commit 8894a261cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 10 deletions

View File

@ -114,6 +114,7 @@ elements.nitrogen_ice.breakInto = "nitrogen_snow"
runAfterLoad(function() {
for(i = 0; i < regularMetalArray.length; i++) {
if(elements[regularMetalArray[i]]) {
elements[`${regularMetalArray[i]}_scrap`] = {
color: elements[regularMetalArray[i]].color,
behavior: behaviors.POWDER,
@ -126,4 +127,5 @@ runAfterLoad(function() {
};
elements[regularMetalArray[i]].breakInto = `${regularMetalArray[i]}_scrap`
};
};
});