summaryrefslogtreecommitdiff
path: root/node_crate.lua
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-01-20 00:30:28 -0700
committerFaceDeer <derksenmobile@gmail.com>2017-01-20 00:30:28 -0700
commitf3cda1f5db7adadeb993a88e05006c6952d53c87 (patch)
treed3c2cfbbd8f92c3c47a04bdf3d8a9360611f5b28 /node_crate.lua
parent68a83a7a8d689c72facbd24e7df87684f7701ba3 (diff)
add achievements for storing Digtrons in crates
Diffstat (limited to 'node_crate.lua')
-rw-r--r--node_crate.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/node_crate.lua b/node_crate.lua
index a9e91ac..9168911 100644
--- a/node_crate.lua
+++ b/node_crate.lua
@@ -29,6 +29,8 @@ minetest.register_node("digtron:empty_crate", {
return
end
+ digtron.award_crate(layout, clicker:get_player_name())
+
local layout_string = layout:serialize()
-- destroy everything. Note that this includes the empty crate, which will be bundled up with the layout.