summaryrefslogtreecommitdiff
path: root/pacmine/fruit.lua
diff options
context:
space:
mode:
authorDonBatman <serfdon@gmail.com>2015-10-24 13:00:14 -0700
committerDonBatman <serfdon@gmail.com>2015-10-24 13:00:14 -0700
commit158bc2f2b49fbb370afcf8f71ef96f8ecb97527d (patch)
treef712337ef94ab4124531bc0a290c4cfe7c14928e /pacmine/fruit.lua
parent3db44d8aa7aabf7e3ea9ecb53e73260d6af9dc52 (diff)
parent239cc107532d1868b426b69968a1bc17603e7e33 (diff)
Merge branch 'master' of https://github.com/DonBatman/myarcade
Diffstat (limited to 'pacmine/fruit.lua')
-rw-r--r--pacmine/fruit.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/pacmine/fruit.lua b/pacmine/fruit.lua
index 29389a8..2969ecc 100644
--- a/pacmine/fruit.lua
+++ b/pacmine/fruit.lua
@@ -24,12 +24,13 @@ minetest.register_node("pacmine:"..itm,{
paramtype2 = "facedir",
walkable = false,
light_source = 14,
- groups = {cracky=3,not_in_creative_inventory = 0},
+ groups = {immortal=1,not_in_creative_inventory = 0},
--node_box = cbox,
selection_box = cbox,
collision_box = cbox,
- after_destruct = function(pos, oldnode)
- pacmine.on_player_got_fruit()
- end,
+ on_timer = function(pos, dtime)
+ print("DELETEEE??")
+ minetest.remove_node(pos)
+ end
})
end