mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
minor fixes
This commit is contained in:
parent
1bea391f1d
commit
8d79ee3499
3 changed files with 5 additions and 7 deletions
|
|
@ -96,8 +96,8 @@ network.udp_open = function (port, datagramHandler)
|
|||
|
||||
local socket = setmetatable({id=network.__open_udp(port)}, DatagramServerSocket)
|
||||
|
||||
_udp_server_callbacks[socket.id] = function(...)
|
||||
datagramHandler(socket, ...)
|
||||
_udp_server_callbacks[socket.id] = function(address, port, data)
|
||||
datagramHandler(address, port, data, socket)
|
||||
end
|
||||
|
||||
return socket
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue