From cd84243965a4c4626c6e1bd5a07bcb4898ca9ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Ronvel?= Date: Mon, 25 Nov 2019 21:20:10 +0100 Subject: [PATCH] removed unnecessary 'default' dependency --- commands.lua | 2 ++ depends.txt | 1 - mod.conf | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.lua b/commands.lua index f7e1120..f4d3d06 100644 --- a/commands.lua +++ b/commands.lua @@ -400,6 +400,7 @@ minetest.register_chatcommand( "teleport", { y = tonumber( parts[3] ) , z = tonumber( parts[4] ) } + if pos.x and pos.y and pos.z then if respawn.teleport( player , { pos = pos } ) then return true, S("Teleported to (@1, @2, @3).", pos.x , pos.y , pos.z) @@ -503,6 +504,7 @@ minetest.register_chatcommand( "teleport_other", { y = tonumber( parts[4] ) , z = tonumber( parts[5] ) } + if pos.x and pos.y and pos.z then if respawn.teleport( player , { pos = pos } ) then minetest.chat_send_all( S("@1 teleported @2 to (@3, @4, @5).", performer_name , player_name , pos.x , pos.y , pos.z ) ) diff --git a/depends.txt b/depends.txt index 4ad96d5..e69de29 100644 --- a/depends.txt +++ b/depends.txt @@ -1 +0,0 @@ -default diff --git a/mod.conf b/mod.conf index c7035dd..dff94a3 100644 --- a/mod.conf +++ b/mod.conf @@ -3,4 +3,3 @@ description = Manage respawn points, interesting places, teleportation and death release = 1 author = cronvel title = Respawn -depends = default