Bugfix (client not connecting)
This commit is contained in:
parent
c37f4df6c5
commit
4732431ada
2
api.lua
2
api.lua
|
@ -16,7 +16,7 @@ vl_client = {
|
|||
-- data: table to be sent to server, must be json serialisable
|
||||
local function send_data(data)
|
||||
-- TODO: Should channel ever be nil?
|
||||
if not vl_client.is_active then return end
|
||||
if not vl_client.is_connected then return end
|
||||
|
||||
local string_data = minetest.write_json(data)
|
||||
--minetest.debug("Sending data to server:", string_data)
|
||||
|
|
Loading…
Reference in New Issue