Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Commit a046a75

Browse files
author
Command17
committed
Commit for 1.0.2
1 parent 8209778 commit a046a75

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

src/Util.lua

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ function util:PackValue(value: any) -- packs a value
6464
end
6565

6666
return "2/" .. result
67+
elseif typeof(value) == "number" then
68+
local v = self:PackValue(tostring(value))
69+
70+
local n = string.sub(v, 3, string.len(v))
71+
72+
return "3/" .. n
6773
else
6874
return value
6975
end
@@ -81,15 +87,18 @@ function util:UnpackValue(value: any) -- unpacks a value
8187
local result = ""
8288

8389
for _, byte in pairs(string.split(v, ".")) do
84-
print(byte)
85-
8690
local char = string.char(tonumber(byte))
87-
8891

8992
result ..= char
9093
end
9194

9295
return result
96+
elseif string.sub(value, 1, 2) == "3/" then
97+
local n = string.sub(value, 3, string.len(value))
98+
99+
local v = self:UnpackValue("2/" .. n)
100+
101+
return tonumber(v)
93102
else
94103
return value
95104
end

wally.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "command17/rbxnetwork"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
registry = "https://github.com/UpliftGames/wally-index"
55
autors = ["@baum1000000 (baum, Command17)"]
66
description = "A simple easy-to-use networking library"

0 commit comments

Comments
 (0)