1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-11-17 07:50:31 +01:00

fix pipeworks_enable_items_per_tube_limit setting

fixes #7
This commit is contained in:
OgelGames 2022-01-07 13:42:08 +11:00
parent 794cae675e
commit 06fd754216

View File

@ -1,5 +1,5 @@
local luaentity = pipeworks.luaentity
local enable_max_limit = minetest.settings:get("pipeworks_enable_items_per_tube_limit")
local enable_max_limit = minetest.settings:get_bool("pipeworks_enable_items_per_tube_limit")
local max_tube_limit = tonumber(minetest.settings:get("pipeworks_max_items_per_tube")) or 30
if enable_max_limit == nil then enable_max_limit = true end