chore(buffer): oops wrong type

This commit is contained in:
khtsly 2026-02-16 17:23:58 +07:00
parent 1f9fe9dfd7
commit ff6a0c5cf4

View file

@ -1146,7 +1146,7 @@ function Schema.struct(fields: { [string]: SchemaType }): SchemaType
return { type = "struct", fields = orderedFields } return { type = "struct", fields = orderedFields }
end end
function Schema.custom_datatype(name: string, object: { any }, writer: (w: Writer, v: any) -> (), reader: (b: buffer, c: number, refs: { Instance }?) -> (buffer, number)) function Schema.custom_datatype(name: string, object: { any }, writer: (w: Writer, v: any) -> (), reader: (b: buffer, c: number, refs: { Instance }?) -> (any, number))
if Schema[name] then if Schema[name] then
warn(`[Warp.Schema]: this 'custom_datatype': "{name}" is already exists, try changing the name.`) warn(`[Warp.Schema]: this 'custom_datatype': "{name}" is already exists, try changing the name.`)
return return