summaryrefslogtreecommitdiff
path: root/awards.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-04 21:11:40 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-04 21:11:40 +0100
commit07997a54f4c082b6c2499f904825fb51394c9bf5 (patch)
treedcb68e21ff7e3f40e244e586b2e5cea3de5db507 /awards.lua
parentf84e6d8db5fa9f5c068432a9c3100f55d3188f51 (diff)
Readd awards
Diffstat (limited to 'awards.lua')
-rw-r--r--awards.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/awards.lua b/awards.lua
index 9ea27b3..4716198 100644
--- a/awards.lua
+++ b/awards.lua
@@ -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