From 270f73f5812eb5f9f1591b5b8331e91558fa1427 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Fri, 5 Jul 2019 09:13:53 +0200 Subject: [PATCH] sethome checks for can_teleport --- sethome.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sethome.lua b/sethome.lua index 8dc3013..a520e5d 100644 --- a/sethome.lua +++ b/sethome.lua @@ -3,7 +3,7 @@ local can_set_home = function(name, pos) -- check travel limit - return not minetest.is_protected(pos, name) and pandorabox.can_travel(minetest.get_player_by_name(name), pos) + return not minetest.is_protected(pos, name) and pandorabox.can_teleport(minetest.get_player_by_name(name), pos) end