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
547 stars 332 forks source link

Properly pass the chip entity instead of the runtimecontext #3076

Closed wrefgtzweve closed 1 month ago

wrefgtzweve commented 1 month ago

Fixes sv: Expression 2 (chipname): Internal error 'entities/gmod_wire_expression2/core/custom/prop.lua:291: bad argument #2 to 'Use' (Entity expected, got table)' at line 179, char 5

Which broke after https://github.com/wiremod/wire/pull/3069

Also makes WireUse use the proper entity