Allow the on_blast API to pass an itemstack.
authorAuke Kok <sofar@foo-projects.org>
Tue, 26 Jan 2016 06:27:15 +0000 (22:27 -0800)
committerparamat <mat.gregory@virginmedia.com>
Sat, 16 Apr 2016 18:27:16 +0000 (19:27 +0100)
commit12d5ca2f48694c990658d401e5f68d281f260aee
tree7b17e5a01f80c882dfb8dceba22b72d9b1efedaa
parent3ecafbcfb41e988ee63f31fd011d450541fc4c2a
Allow the on_blast API to pass an itemstack.

If the node is special and has an on_blast() handler, we need
to call it instead of getting node drops manually. However, we
do want to know if drops should be added for the special nodes,
so we modify the on_blast() handler code to allow the nodedef
handlers to pass back itemstacks. This could be used by e.g.
the doors mod to drop door items after a blast.

Since this API is documented in lua_api.txt, a separate PR will
be incoming to update the on_blast() documentation.
mods/tnt/init.lua