mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add Bytearray '__pairs` metamethod
This commit is contained in:
parent
50aae8b98b
commit
805e3fdd7d
2 changed files with 3 additions and 2 deletions
|
|
@ -279,7 +279,7 @@ end
|
|||
local bytearray = require "core:internal/bytearray"
|
||||
Bytearray = bytearray.FFIBytearray
|
||||
Bytearray_as_string = bytearray.FFIBytearray_as_string
|
||||
Bytearray_construct = Bytearray.__call
|
||||
Bytearray_construct = function(...) return Bytearray(...) end
|
||||
ffi = nil
|
||||
|
||||
math.randomseed(time.uptime() * 1536227939)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue