Bugfixes: removed hard nil val checks from toolkit.lua fixed few mismatches causing crashes

This commit is contained in:
Bluewhale1337
2026-07-25 00:42:46 +02:00
parent c51cfa3f73
commit 94872c5a17
5 changed files with 140 additions and 80 deletions
+3 -3
View File
@@ -114,9 +114,9 @@ function hooksecurefunc(a1, a2, a3)
local original_func = a1[a2]
a1[a2] = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
local r1, r2, r3, r4, r5, r6, r7, r8, r9, r10 = original_func(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
a3(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
a1[a2] = function(...)
local r1, r2, r3, r4, r5, r6, r7, r8, r9, r10 = original_func(unpack(arg))
a3(unpack(arg))
return r1, r2, r3, r4, r5, r6, r7, r8, r9, r10
end