Fix incorrect crafting_rate type

closes #3
This commit is contained in:
sfan5 2020-05-27 20:57:45 +02:00
parent f97cb9a238
commit 69083ed6f5

@ -9,8 +9,7 @@ if minetest.get_modpath("hopper") and hopper ~= nil and hopper.add_container ~=
end end
local crafting_rate = minetest.settings:get("crafting_bench_crafting_rate") local crafting_rate = tonumber(minetest.settings:get("crafting_bench_crafting_rate")) or 5
if crafting_rate == nil then crafting_rate = 5 end
minetest.register_node("crafting_bench:workbench",{ minetest.register_node("crafting_bench:workbench",{