From 12186a32813a8613e562d1b61e9271d8be14e574 Mon Sep 17 00:00:00 2001 From: thegrb93 Date: Mon, 12 Feb 2024 15:17:17 -0500 Subject: [PATCH] Fix model error (#2997) --- lua/wire/sh_modelplug.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/wire/sh_modelplug.lua b/lua/wire/sh_modelplug.lua index cbd6f5c373..954e47813f 100644 --- a/lua/wire/sh_modelplug.lua +++ b/lua/wire/sh_modelplug.lua @@ -3,7 +3,7 @@ ModelPlug = ModelPlug or {} local list_set = list.Set function ModelPlug.ListAddModels( listName, models, value ) - value = value or true + value = value or {} for k, v in ipairs(models) do list_set(listName, v, value) end @@ -68,4 +68,4 @@ ModelPlug.ListAddGenerics("Wire_Socket_Models", { }, }) -hook.Run("ModelPlugLuaRefresh") \ No newline at end of file +hook.Run("ModelPlugLuaRefresh")