mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-26 08:33:45 +01:00
Fix crash when drawers_controller_interval is undefined (#21)
This commit is contained in:
parent
bc48fc0c07
commit
08a52054a6
@ -43,7 +43,8 @@ Controllers that have no items will not continue scanning drawers. ]]--
|
|||||||
local MP = core.get_modpath(core.get_current_modname())
|
local MP = core.get_modpath(core.get_current_modname())
|
||||||
local S, NS = dofile(MP.."/intllib.lua")
|
local S, NS = dofile(MP.."/intllib.lua")
|
||||||
|
|
||||||
local controller_interval = tonumber(core.setting_get("drawers_controller_interval"))
|
local controller_interval = tonumber(core.setting_get("drawers_controller_interval")) or 7.0
|
||||||
|
|
||||||
|
|
||||||
local function controller_can_dig(pos, player)
|
local function controller_can_dig(pos, player)
|
||||||
local meta = core.get_meta(pos);
|
local meta = core.get_meta(pos);
|
||||||
|
Loading…
Reference in New Issue
Block a user