Readd awards

This commit is contained in:
rubenwardy
2018-04-04 21:11:40 +01:00
parent f84e6d8db5
commit 07997a54f4
3 changed files with 6 additions and 17 deletions

View File

@ -214,9 +214,9 @@ if minetest.get_modpath("default") then
icon = "default_lava.png",
})
awards.register_on_dig(function(player,data)
local pos = player:getpos()
if pos and (minetest.find_node_near(pos, 1, "default:lava_source") ~= nil or
minetest.find_node_near(pos, 1, "default:lava_flowing") ~= nil) then
local pos = player:get_pos()
if pos and (minetest.find_node_near(pos, 1, "default:lava_source") or
minetest.find_node_near(pos, 1, "default:lava_flowing")) then
return "award_lavaminer"
end
return nil