From ae74f90532980f69d87381707e83b307ec2ba1e4 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 7 Feb 2021 14:33:20 +0100 Subject: [PATCH] Fix server boolean variable bug --- lua_controller/server.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua_controller/server.lua b/lua_controller/server.lua index 62cea21..e59fcb8 100644 --- a/lua_controller/server.lua +++ b/lua_controller/server.lua @@ -122,6 +122,8 @@ minetest.register_craft({ local function calc_size(v) if type(v) == "number" then return 1 + elseif type(v) == "boolean" then + return 1 elseif v == nil then return 0 elseif type(v) == "string" then