Fix server boolean variable bug

This commit is contained in:
Joachim Stolberg 2021-02-07 14:33:20 +01:00
parent dfc49e127b
commit ae74f90532

View File

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