Fix object teleportation from and to nether

This commit is contained in:
HybridDog 2018-08-18 20:00:30 +02:00
parent df2d49edb0
commit fadf202663
1 changed files with 4 additions and 0 deletions

View File

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