Use mcl_vars.get_node in get_portal

Otherwise it is possible for the node to be "ignore".
This commit is contained in:
Elias Åström 2023-05-07 20:41:21 +02:00 committed by cora
parent d8daf923b6
commit 908ac737a1

View File

@ -252,7 +252,7 @@ end
-- Get portal at specified position. Returns (pos, node) for the portal.
local function get_portal(pos)
local node = minetest.get_node(pos)
local node = mcl_vars.get_node(pos)
if node.name == "mcl_portals:portal" then
local meta = minetest.deserialize(minetest.get_meta(pos):get_string("portal"))
if meta then