Use underscore for domain settingtype for consistency with other mods.

This commit is contained in:
Karamel 2020-12-29 23:34:49 +01:00
parent 96e5296b63
commit 0d2f7c1b5b
2 changed files with 4 additions and 4 deletions

@ -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