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

Add fallback to use typename in debugger when no format defined #3035

Closed Denneisk closed 3 months ago

Denneisk commented 3 months ago

Fixes #3034. The bug here is that the table function expects formatPort to be defined for all types. In the event that it's not, it will call a nil function and error. This PR solves this by adding a default type for all possible types using a metatable that returns the input typename if the index is not found.

image