wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
551 stars 331 forks source link

Lua standard thruster error #2993

Closed Astralcircle closed 6 months ago

Astralcircle commented 6 months ago

Tested in the game without addons and chromium. Wiremod was the newest from Github (Feb 8, 2024)

Describe the bug Lua error when selecting Wiremod model in the GMOD DEFAULT thrusters menu

lua/vgui/propselect.lua:47: bad argument #1 to 'pairs' (table expected, got boolean)

  1. pairs - [C]:-1
    1. DoClick - lua/vgui/propselect.lua:47
      1. unknown - lua/vgui/dlabel.lua:237

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Tools --> Thruster
  2. Select model "models/fasteroid/computerfan.mdl" (Fan model from Wiremod)'
  3. See error

Expected behavior Fix lua error

Screenshots image image

thegrb93 commented 6 months ago

this needs to be value = value or {} https://github.com/wiremod/wire/blob/master/lua/wire/sh_modelplug.lua#L6

Fasteroid commented 6 months ago

my fault