mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-24 23:53:45 +01:00
Change default value of drawer controller interval to 1.0
This commit is contained in:
parent
885f8daf7b
commit
654959ac55
4
init.lua
4
init.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user