mirror of
https://github.com/ACF-Team/CFW.git
synced 2025-03-04 03:03:16 -05:00
Do not manage parented players in contraptions
This commit is contained in:
parent
69e11a6169
commit
7331e604be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user