forked from minetest-mods/warps
Support send_mapblock when we can.
This commit is contained in:
parent
37315e72c9
commit
b7fd67c431
4
init.lua
4
init.lua
@ -103,6 +103,10 @@ local warp_queue_add = function(player, dest)
|
|||||||
if not minetest.get_node_or_nil(pos) then
|
if not minetest.get_node_or_nil(pos) then
|
||||||
minetest.emerge_area(vector.subtract(pos, 80), vector.add(pos, 80))
|
minetest.emerge_area(vector.subtract(pos, 80), vector.add(pos, 80))
|
||||||
end
|
end
|
||||||
|
-- force mapblock send to player, if supported
|
||||||
|
if player.send_mapblock then
|
||||||
|
player:send_mapblock(vector.divide(dest, 16))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local worldpath = minetest.get_worldpath()
|
local worldpath = minetest.get_worldpath()
|
||||||
|
Loading…
Reference in New Issue
Block a user