diff --git a/lua/entities/linked_portal_door/init.lua b/lua/entities/linked_portal_door/init.lua index 9095f4a..3ab5bf7 100644 --- a/lua/entities/linked_portal_door/init.lua +++ b/lua/entities/linked_portal_door/init.lua @@ -61,7 +61,7 @@ function ENT:Touch( ent ) ent:SetAngles( new_angle ) local phys = ent:GetPhysicsObject() - if phys then phys:SetVelocity( new_velocity ) end + if IsValid(phys) then phys:SetVelocity( new_velocity ) end end ent:ForcePlayerDrop()