diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-25 19:49:20 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:52 +0200 |
commit | 9e7ad1e2aa832ff93a623e7a1531cee1f1e79ef7 (patch) | |
tree | 92ebc9ff4a3750206f52b52858de1a4289d6f16d /data/mods | |
parent | ae9f183cda7046028e6d74972922dc41cf6039bf (diff) | |
download | minetest-9e7ad1e2aa832ff93a623e7a1531cee1f1e79ef7.tar.gz minetest-9e7ad1e2aa832ff93a623e7a1531cee1f1e79ef7.tar.bz2 minetest-9e7ad1e2aa832ff93a623e7a1531cee1f1e79ef7.zip |
Add object reference to Lua on_place/dig/punchnode parameters
Diffstat (limited to 'data/mods')
-rw-r--r-- | data/mods/default/init.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index e6342c357..11fac245d 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -82,8 +82,9 @@ end -- minetest.register_node(name, {lots of stuff}) -- minetest.register_craft({output=item, recipe={...}) -- minetest.register_globalstep(func) --- minetest.register_on_placenode(func) --- minetest.register_on_dignode(func) +-- minetest.register_on_placenode(func(pos, newnode, placer)) +-- minetest.register_on_dignode(func(pos, oldnode, digger)) +-- minetest.register_on_punchnode(func(pos, node, puncher)) -- -- Global objects: -- minetest.env - environment reference |