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

Changing E2 cores breaks CPPI checks #3055

Closed wrefgtzweve closed 2 months ago

wrefgtzweve commented 2 months ago

Currently CPPI is only checked once on InitPostEntity https://github.com/wiremod/wire/blob/bc746679a647ed0726b55c4a3b45cbdbe0fa1dea/lua/entities/gmod_wire_expression2/core/e2lib.lua#L937-L947 However when cores are changed it isn't reapplied resulting in functions using CPPI breaking such as entity:setPos()