-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsettings.lua
More file actions
36 lines (23 loc) · 941 Bytes
/
settings.lua
File metadata and controls
36 lines (23 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
local utils = ...
utils.settings = { }
utils.settings.running_tick =
tonumber(minetest.settings:get("lwscratch_running_tick") or 0.1)
utils.settings.robot_move_delay =
tonumber(minetest.settings:get("lwscratch_robot_move_delay") or 0.5)
utils.settings.robot_action_delay =
tonumber(minetest.settings:get("lwscratch_robot_action_delay") or 0.2)
utils.settings.public_chat =
minetest.settings:get_bool ("lwscratch_allow_public_chat", true)
utils.settings.use_mod_on_place =
minetest.settings:get_bool ("lwscratch_use_mod_on_place", true)
utils.settings.alert_handler_errors =
minetest.settings:get_bool ("lwscratch_alert_handler_errors", true)
if utils.settings.robot_move_delay < 0.1 then
utils.settings.robot_move_delay = 0.1
end
if utils.settings.robot_action_delay < 0.1 then
utils.settings.robot_action_delay = 0.1
end
utils.settings.default_stack_max =
tonumber(minetest.settings:get("default_stack_max")) or 99
--