From 4732431adafe9fce5853f4d688546d41f90b6760 Mon Sep 17 00:00:00 2001 From: WillConker Date: Wed, 3 Jul 2024 18:00:39 +0100 Subject: [PATCH] Bugfix (client not connecting) --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 90f9679..0324a17 100644 --- a/api.lua +++ b/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)