Bugfix (client not connecting)

This commit is contained in:
WillConker 2024-07-03 18:00:39 +01:00
parent c37f4df6c5
commit 4732431ada
1 changed files with 1 additions and 1 deletions

View File

@ -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)