Skip to content

Commit e2b3af9

Browse files
committed
CFW_AfterParentedTo -> CFW_OnParentedTo
1 parent 42b65bd commit e2b3af9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/cfw/core/parenting_sv.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ hook.Add("Initialize", "CFW", function()
3232
-- NOTE:
3333
-- CFW_PreParentedTo is called before any parenting operation happens, to allow entities to block parenting
3434
-- Therefore GetParent() will be outdated in CFW_PreParentedTo call stacks
35-
-- See CFW_AfterParentedTo, which cannot block calls.
35+
-- See CFW_OnParentedTo, which cannot block calls.
3636
if self.CFW_PreParentedTo and self:CFW_PreParentedTo(oldParent, newParent, newAttach, ...) == false then
3737
return
3838
end
@@ -61,7 +61,7 @@ hook.Add("Initialize", "CFW", function()
6161
savedParent:CFW_OnParented(self, true)
6262
end
6363

64-
if self.CFW_AfterParentedTo then self:CFW_AfterParentedTo(oldParent, newParent) end
64+
if self.CFW_OnParentedTo then self:CFW_OnParentedTo(oldParent, newParent) end
6565

6666
if self._cfwRemoved then return end -- Removed by an undo
6767
if oldParent == newParent then return end

0 commit comments

Comments
 (0)