1
0
mirror of https://github.com/HybridDog/nether-pack.git synced 2024-12-26 02:30:24 +01:00

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

View File

@ -200,6 +200,10 @@ if nether_prisons then
-- override set_pos etc. to disallow player teleportion by e.g. travelnet -- override set_pos etc. to disallow player teleportion by e.g. travelnet
local function can_teleport(player, pos) 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 pname = player:get_player_name()
local in_nether = players_in_nether[pname] == true local in_nether = players_in_nether[pname] == true