Skip to content

Commit 3374dca

Browse files
🔧 fix damage detector linking to itself after dupe paste (#3565)
* 🔧 fix damage detector linking to itself after dupe paste * Less diff * Woops --------- Co-authored-by: Astralcircle <142503363+Astralcircle@users.noreply.github.com>
1 parent 6448db5 commit 3374dca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/entities/gmod_wire_damage_detector.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ function ENT:ApplyDupeInfo(ply, ent, info, GetEntByID)
329329
BaseClass.ApplyDupeInfo(self, ply, ent, info, GetEntByID)
330330

331331
if info.linked_entities then
332+
self:ClearEntities()
333+
332334
if type( info.linked_entities ) == "number" then -- old dupe compatibility
333335
self:LinkEnt( GetEntByID( info.linked_entities ) )
334336
else

0 commit comments

Comments
 (0)