Skip to content

Commit 121f0ff

Browse files
author
thegrb93
authored
Merge pull request #1828 from thegrb93/fix-first-dupe-ops-difference
Fixed ops treated differently with duped() and first()
2 parents 0af8014 + f31bbd5 commit 121f0ff

File tree

1 file changed

+2
-1
lines changed
  • lua/entities/gmod_wire_expression2

1 file changed

+2
-1
lines changed

lua/entities/gmod_wire_expression2/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,10 @@ function ENT:Setup(buffer, includes, restore, forcecompile, filepath)
463463
if not restore then
464464
self.first = true
465465
self:Execute()
466+
self:Think()
466467
end
467468

468469
self:NextThink(CurTime())
469-
self:Think()
470470
end
471471

472472
function ENT:Reset()
@@ -519,6 +519,7 @@ function ENT:ApplyDupeInfo(ply, ent, info, GetEntByID, GetConstByID)
519519

520520
self.duped = true
521521
self:Execute()
522+
self:Think()
522523
self.duped = false
523524
end
524525

0 commit comments

Comments
 (0)