aboutsummaryrefslogtreecommitdiff
path: root/clientmods/commands/init.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-07-18 20:01:17 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-07-18 20:01:17 +0200
commit5a8610c2f41e44c827912246b4f9437051d11621 (patch)
tree04fa785120501182e83c5b05515527bb0428aa63 /clientmods/commands/init.lua
parent83f59484d3b03e8964f1c7886dd1a0afd96ddd8d (diff)
downloaddragonfireclient-5a8610c2f41e44c827912246b4f9437051d11621.tar.xz
Added customizable keybindings, improved freecam, added special inventory keybind (by default ender inventory)
Diffstat (limited to 'clientmods/commands/init.lua')
-rw-r--r--clientmods/commands/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/clientmods/commands/init.lua b/clientmods/commands/init.lua
index 4ea8d04f6..71328e9ed 100644
--- a/clientmods/commands/init.lua
+++ b/clientmods/commands/init.lua
@@ -8,12 +8,12 @@ minetest.register_chatcommand("say", {
minetest.register_chatcommand("teleport", {
params = "<X>,<Y>,<Z>",
- description = "Teleport to position. " .. (core.anticheat_protection and "Only works for short distances." or ""),
+ description = "Teleport to relative coordinates. " .. (core.anticheat_protection and "Only works for short distances." or ""),
func = function(param)
- local success, pos = core.parse_pos(param)
+ local success, pos = minetest.parse_relative_pos(param)
if success then
- core.localplayer:set_pos(pos)
- return true, "Teleporting to " .. core.pos_to_string(pos)
+ minetest.localplayer:set_pos(pos)
+ return true, "Teleporting to " .. minetest.pos_to_string(pos)
end
return false, pos
end,