Merge pull request #1 from oleastre/master

Report the number of missing extensions
This commit is contained in:
texmex 2017-04-03 04:29:52 +02:00 committed by GitHub
commit 2368c02ed7

View File

@ -147,6 +147,9 @@ local function extender_place(placepos, placer, itemstack, pointed_thing)
if dist <= C.beacon_range + extended then
-- upgrade :-)
minetest.swap_node(pos, { name = "telemosaic:beacon" })
else
local count = math.ceil(dist - (C.beacon_range + extended))
minetest.chat_send_player(placer:get_player_name(), "You still need to add extensions for "..count.." nodes" )
end
end
end