I seem to have resolved the itemstack issue by adding itemstack to the function, but the add_node issue is still there.
- Code: Select all
aa0001@minetest01:~/minetest/mods$ diff cannons/functions.lua ~/minetest/minetest-0.4.12-neuromancer/mods/cannons/functions.lua
146c146
< cannons.on_construct = function(pos)
---
> cannons.on_construct = function(pos, itemstack)
- Code: Select all
16:06:14: ACTION[ServerThread]: Spawned creatures:zombie at (-137,-20,332)
16:07:00: ACTION[ServerThread]: Benjamin places node cannons:ship_stand_with_cannon_mithril at (-107,7,292)
16:07:00: ACTION[ServerThread]: facedir: 0
16:07:00: ERROR[main]: ERROR: An unhandled exception occurred: error in error handling
16:07:00: ERROR[main]: stack traceback:
16:07:00: ERROR[main]: [C]: in function 'add_node'
16:07:00: ERROR[main]: ...minetest-0.4.12-neuromancer/bin/../builtin/game/item.lua:276: in function <...minetest-0.4.12-neuromancer/bin/../builtin/game/item.lua:191>