default breaking code to "enabled" and lower the default limit to 30.

This commit is contained in:
Vanessa Ezekowitz 2017-04-06 00:15:16 -04:00
parent 2aa9556748
commit f3a74bb618

View File

@ -1,6 +1,7 @@
local luaentity = pipeworks.luaentity local luaentity = pipeworks.luaentity
local enable_max_limit = minetest.setting_get("pipeworks_enable_items_per_tube_limit") local enable_max_limit = minetest.setting_get("pipeworks_enable_items_per_tube_limit")
local max_tube_limit = tonumber(minetest.setting_get("pipeworks_max_items_per_tube")) or 40 local max_tube_limit = tonumber(minetest.setting_get("pipeworks_max_items_per_tube")) or 30
if enable_max_limit == nil then enable_max_limit = true end
function pipeworks.tube_item(pos, item) function pipeworks.tube_item(pos, item)
error("obsolete pipeworks.tube_item() called; change caller to use pipeworks.tube_inject_item() instead") error("obsolete pipeworks.tube_item() called; change caller to use pipeworks.tube_inject_item() instead")