Skip to content

Commit

Permalink
Fix for trackcollision(e), can now be done on first() (#3137)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone committed Sep 10, 2024
1 parent a47523b commit 64a9398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/entities/gmod_wire_expression2/core/custom/prop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ end

e2function number trackCollision( entity ent )
-- If it's not registered, collisions will just stack up infinitely and not be flushed.
if not registered_chips[self.entity] then
if not self.entity.registered_events["entityCollision"] then
self:forceThrow("event entityCollision(eexcd) is needed to use trackCollision(e)!")
end
if IsValid(ent) then
Expand Down

0 comments on commit 64a9398

Please sign in to comment.