Change default value of drawer controller interval to 1.0

This commit is contained in:
Linus Jahn 2019-05-18 23:10:53 +02:00
parent 885f8daf7b
commit 654959ac55
No known key found for this signature in database
GPG Key ID: 4663231A91A1E27B
3 changed files with 3 additions and 5 deletions

@ -31,18 +31,16 @@ local S, NS = dofile(MP.."/intllib.lua")
drawers = {}
drawers.drawer_visuals = {}
drawers.WOOD_ITEMSTRING = "group:wood"
if core.get_modpath("default") and default then
drawers.WOOD_SOUNDS = default.node_sound_wood_defaults()
drawers.WOOD_ITEMSTRING = "group:wood"
drawers.CHEST_ITEMSTRING = "default:chest"
elseif core.get_modpath("mcl_core") and mcl_core then -- MineClone 2
drawers.WOOD_ITEMSTRING = "group:wood"
drawers.CHEST_ITEMSTRING = "mcl_chests:chest"
if core.get_modpath("mcl_sounds") and mcl_sounds then
drawers.WOOD_SOUNDS = mcl_sounds.node_sound_wood_defaults()
end
else
drawers.WOOD_ITEMSTRING = "group:wood"
drawers.CHEST_ITEMSTRING = "chest"
end

@ -47,7 +47,7 @@ local default_loaded = core.get_modpath("default") and default
local mcl_loaded = core.get_modpath("mcl_core") and mcl_core
local pipeworks_loaded = core.get_modpath("pipeworks") and pipeworks
local controller_interval = tonumber(core.setting_get("drawers_controller_interval")) or 7.0
local controller_interval = tonumber(core.settings:get("drawers_controller_interval")) or 1.0
local function controller_formspec(pos, meta_current_state)
local formspec =

@ -1 +1 @@
drawers_controller_interval (Drawer Controller update interval in seconds) float 7.0 0.1 10.0
drawers_controller_interval (Drawer Controller update interval in seconds) float 1.0 0.1 10.0