Do not manage parented players in contraptions

This commit is contained in:
thecraftianman 2024-06-03 14:16:46 -04:00
parent 69e11a6169
commit 7331e604be

View File

@ -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