Skip to content

Commit 9a1920a

Browse files
committed
Fix all categories showing for all table types
1 parent 2847019 commit 9a1920a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lua/entities/ucs_table/cl_init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ DrawItems = function( ent )
4242

4343
--Read categories from ingredients
4444
for k,v in pairs( CraftingIngredient ) do
45+
if !v.Types or !v.Types[typ] then continue end
4546
local cat = v.Category or "Uncategorized"
4647
if !table.HasValue( categories, v.Category ) then
4748
table.insert( categories, v.Category )
@@ -137,6 +138,7 @@ DrawRecipes = function( ent )
137138

138139
local categories = {}
139140
for k,v in pairs( CraftingRecipe ) do
141+
if !v.Types or !v.Types[typ] then continue end
140142
local cat = v.Category or "Uncategorized"
141143
if !table.HasValue( categories, v.Category ) then
142144
table.insert( categories, v.Category )

lua/entities/ucs_table/shared.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ function ENT:GetData()
2020
return CraftingTable[typ]
2121
end
2222

23-
local version = "2.0.1"
23+
local version = "2.0.2"
2424
print( "Universal Crafting System v"..version.." by OPGman successfully loaded.\n" )

0 commit comments

Comments
 (0)