From fadf202663c2b39bb0c1c76de8f0be913ab261b1 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sat, 18 Aug 2018 20:00:30 +0200 Subject: [PATCH] Fix object teleportation from and to nether --- nether/portal.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nether/portal.lua b/nether/portal.lua index 1bbed77..79e059f 100644 --- a/nether/portal.lua +++ b/nether/portal.lua @@ -200,6 +200,10 @@ if nether_prisons then -- override set_pos etc. to disallow player teleportion by e.g. travelnet local function can_teleport(player, pos) + if not player:is_player() then + -- the same metatable is used for entities + return true + end local pname = player:get_player_name() local in_nether = players_in_nether[pname] == true