diff options
author | Jordan Irwin <antumdeluge@gmail.com> | 2017-05-18 02:33:56 -0700 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-05-18 05:33:56 -0400 |
commit | 69d994a2a28b435a5cc37528fccce04c44d1d5ba (patch) | |
tree | ca7ca1d2071f3b52ef1646b95c8cfe2c1727e868 /item_transport.lua | |
parent | 7d70d79cdac6f44a5409e78e93bbcb419e1c3958 (diff) |
Replace deprecated methods: (#179)
- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
Diffstat (limited to 'item_transport.lua')
-rw-r--r-- | item_transport.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/item_transport.lua b/item_transport.lua index 43adeea..b2d2aa2 100644 --- a/item_transport.lua +++ b/item_transport.lua @@ -1,6 +1,6 @@ local luaentity = pipeworks.luaentity -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 30 +local enable_max_limit = minetest.settings:get("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 function pipeworks.tube_item(pos, item) |