@@ -93,33 +93,35 @@ function initialize_crafting_recipes()
93
93
local l_hideout_recipes = { " $SURVIVAL_DATA/CraftingRecipes/hideout.json" }
94
94
95
95
for mod_uuid , v in pairs (ModDatabase .databases .descriptions ) do
96
- local mod_key = " $CONTENT_" .. mod_uuid
97
-
98
- local success , fileExists = pcall (_json_file_exists , mod_key )
99
- if success == true and fileExists == true then
100
- local cur_exception = mod_exception_list [mod_uuid ]
101
-
102
- if cur_exception == nil then
103
- local recipe_folder = mod_key .. " /CraftingRecipes/"
104
-
105
- is_recipe_file_valid (recipe_folder .. " craftbot.json" , l_craftbot_recipes )
106
- is_recipe_file_valid (recipe_folder .. " workbench.json" , l_workbench_recipes )
107
- is_recipe_file_valid (recipe_folder .. " hideout.json" , l_hideout_recipes )
108
- else
109
- local exc_craftbot = cur_exception .craftbot
110
- local exc_workbench = cur_exception .workbench
111
- local exc_hideout = cur_exception .hideout
112
-
113
- if exc_craftbot then
114
- is_recipe_file_valid (mod_key .. exc_craftbot , l_craftbot_recipes )
115
- end
116
-
117
- if exc_workbench then
118
- is_recipe_file_valid (mod_key .. exc_workbench , l_workbench_recipes )
119
- end
120
-
121
- if exc_hideout then
122
- is_recipe_file_valid (mod_key .. exc_hideout , l_hideout_recipes )
96
+ if v .type ~= " Custom Game" then
97
+ local mod_key = " $CONTENT_" .. mod_uuid
98
+
99
+ local success , fileExists = pcall (_json_file_exists , mod_key )
100
+ if success == true and fileExists == true then
101
+ local cur_exception = mod_exception_list [mod_uuid ]
102
+
103
+ if cur_exception == nil then
104
+ local recipe_folder = mod_key .. " /CraftingRecipes/"
105
+
106
+ is_recipe_file_valid (recipe_folder .. " craftbot.json" , l_craftbot_recipes )
107
+ is_recipe_file_valid (recipe_folder .. " workbench.json" , l_workbench_recipes )
108
+ is_recipe_file_valid (recipe_folder .. " hideout.json" , l_hideout_recipes )
109
+ else
110
+ local exc_craftbot = cur_exception .craftbot
111
+ local exc_workbench = cur_exception .workbench
112
+ local exc_hideout = cur_exception .hideout
113
+
114
+ if exc_craftbot then
115
+ is_recipe_file_valid (mod_key .. exc_craftbot , l_craftbot_recipes )
116
+ end
117
+
118
+ if exc_workbench then
119
+ is_recipe_file_valid (mod_key .. exc_workbench , l_workbench_recipes )
120
+ end
121
+
122
+ if exc_hideout then
123
+ is_recipe_file_valid (mod_key .. exc_hideout , l_hideout_recipes )
124
+ end
123
125
end
124
126
end
125
127
end
0 commit comments