Skip to content

Commit

Permalink
Do not manage parented players in contraptions
Browse files Browse the repository at this point in the history
  • Loading branch information
thecraftianman committed Jun 3, 2024
1 parent 69e11a6 commit 7331e60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/cfw/core/parenting_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ hook.Add("Initialize", "CFW", function()

if self._cfwRemoved then return end -- Removed by an undo
if oldParent == newParent then return end
if (validOldParent and oldParent:IsPlayer()) or (validNewParent and newParent:IsPlayer()) then return end
if filter[self:GetClass()] then return end

if validOldParent then disconnect(self, oldParent:EntIndex(), isParent) end
Expand Down

0 comments on commit 7331e60

Please sign in to comment.