This commit is contained in:
parent
d8a389fa7f
commit
dad479fac8
@ -874,9 +874,9 @@ export const addItem = async (
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "Weapons":
|
||||
case "Weapons": {
|
||||
if (typeName.substr(1).split("/")[4] == "MeleeTrees") break;
|
||||
let productCategory = typeName.substr(1).split("/")[3];
|
||||
const productCategory = typeName.substr(1).split("/")[3];
|
||||
switch (productCategory) {
|
||||
case "Pistols":
|
||||
case "LongGuns":
|
||||
@ -893,6 +893,7 @@ export const addItem = async (
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw new Error(`unable to add item: ${typeName}`);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user