mirror of
https://files.creativekara.fr/git/poschangelib.git
synced 2024-07-15 12:19:31 +02:00
Use underscore for domain settingtype for consistency with other mods.
This commit is contained in:
parent
96e5296b63
commit
0d2f7c1b5b
4
init.lua
4
init.lua
@ -10,10 +10,10 @@ poschangelib = {}
|
|||||||
--]]
|
--]]
|
||||||
|
|
||||||
function poschangelib.setting_check_interval()
|
function poschangelib.setting_check_interval()
|
||||||
return tonumber(minetest.settings:get('poschangelib.check_interval')) or 0.3
|
return tonumber(minetest.settings:get('poschangelib_check_interval')) or 0.3
|
||||||
end
|
end
|
||||||
function poschangelib.setting_teleport_range()
|
function poschangelib.setting_teleport_range()
|
||||||
return tonumber(minetest.settings:get('poschangelib.teleport_range')) or 10
|
return tonumber(minetest.settings:get('poschangelib_teleport_range')) or 10
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Table of already called listeners in main loop to prevent triggering them
|
--- Table of already called listeners in main loop to prevent triggering them
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
# Interval in seconds between position checking
|
# Interval in seconds between position checking
|
||||||
# The lesser it is, the more accurate it is but also the more resources demanding.
|
# The lesser it is, the more accurate it is but also the more resources demanding.
|
||||||
poschangelib.check_interval (Check interval) float 0.3 0.05
|
poschangelib_check_interval (Check interval) float 0.3 0.05
|
||||||
|
|
||||||
# Distance between two checks that is considered to be a teleportation and won't
|
# Distance between two checks that is considered to be a teleportation and won't
|
||||||
# compute interpolated positions between last known position and current position.
|
# compute interpolated positions between last known position and current position.
|
||||||
# Set to 0 to disable checking.
|
# Set to 0 to disable checking.
|
||||||
poschangelib.teleport_range (Teleport range) int 10 0
|
poschangelib_teleport_range (Teleport range) int 10 0
|
||||||
|
Loading…
Reference in New Issue
Block a user