From 885fa2faba45ab4c35ef031514d9b90dbbc22181 Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Sat, 18 Jan 2020 00:25:40 +0100 Subject: [PATCH] Bug fix --- gamemode/engine/derma/menus/menu_crafting.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gamemode/engine/derma/menus/menu_crafting.lua b/gamemode/engine/derma/menus/menu_crafting.lua index c1c2701..18b8de8 100644 --- a/gamemode/engine/derma/menus/menu_crafting.lua +++ b/gamemode/engine/derma/menus/menu_crafting.lua @@ -217,9 +217,15 @@ function menu.open( dt ) theme.blurpanel( self, Color( 255, 255, 255, 1 ) ) end + local items = { + "test", + "test2", + "potatoe", + "bomb" + } for i=1, 10 do ---- ADD CRAFT SELECT PANELS HERE local p = createItemPanel( 200, 200*(i-1), 1.25, scroll, f ) - p.SetItem( "potatoe" ) + p.SetItem( table.Random( items ) ) end