Introduce builtin_shared and use it to fix #4778
authorest31 <MTest31@outlook.com>
Wed, 16 Nov 2016 09:17:46 +0000 (10:17 +0100)
committerest31 <MTest31@outlook.com>
Wed, 16 Nov 2016 17:51:36 +0000 (18:51 +0100)
commitafc48c802a81b95b11aef3ad0141a56f6a184979
tree2b99da4289a6e5eabf1236aa305ad2d882001989
parent5f0dc8e78ad7e62959786efd5c7f72044aacb53a
Introduce builtin_shared and use it to fix #4778

Fixes #4778 which was about the error:

ServerError: Lua: Runtime error from mod '' in callback item_OnPlace():
/usr/local/share/minetest/builtin/game/item.lua:278: attempt to call global 'check_attached_node' (a nil value)

The issue was a regression of commit 649448a2a91fbf3e944b2f2e739f4e2292af1df0

"Rename nodeupdate and nodeupdate_single and make them part of the official API"
builtin/game/falling.lua
builtin/game/init.lua
builtin/game/item.lua