File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ DrawItems = function( ent )
42
42
43
43
-- Read categories from ingredients
44
44
for k ,v in pairs ( CraftingIngredient ) do
45
+ if !v .Types or !v .Types [typ ] then continue end
45
46
local cat = v .Category or " Uncategorized"
46
47
if !table .HasValue ( categories , v .Category ) then
47
48
table.insert ( categories , v .Category )
@@ -137,6 +138,7 @@ DrawRecipes = function( ent )
137
138
138
139
local categories = {}
139
140
for k ,v in pairs ( CraftingRecipe ) do
141
+ if !v .Types or !v .Types [typ ] then continue end
140
142
local cat = v .Category or " Uncategorized"
141
143
if !table .HasValue ( categories , v .Category ) then
142
144
table.insert ( categories , v .Category )
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ function ENT:GetData()
20
20
return CraftingTable [typ ]
21
21
end
22
22
23
- local version = " 2.0.1 "
23
+ local version = " 2.0.2 "
24
24
print ( " Universal Crafting System v" .. version .. " by OPGman successfully loaded.\n " )
You can’t perform that action at this time.
0 commit comments