make that actually work lol

This commit is contained in:
AAGaming
2022-12-31 22:52:37 -05:00
parent 335d38e12b
commit 0fe3282828
+1 -1
View File
@@ -131,7 +131,7 @@ class MenuHook extends Logger {
itemList[index] = replaced;
toReplace.delete(item?.props.route as string);
}
if (item?.props?.route && itemPatches.has(item.props.route as string)) {
if (item?.props?.route && (itemPatches.has(item.props.route as string) || itemPatches.has('*'))) {
toReplace.set(item?.props?.route as string, itemList[index]);
itemPatches.get(item.props.route as string)?.forEach((patch) => {
const oType = itemList[index].type;