I get the following error in a recent 0.5.0-dev version:
Code: Select all
2017-10-03 12:57:52: ERROR[Main]: ModError: Failed to load and run mod "ignore":
2017-10-03 12:57:52: ERROR[Main]: ignore:init.lua:15: attempt to call field 'register_on_receiving_chat_messages' (a nil value)
2017-10-03 12:57:52: ERROR[Main]: stack traceback:
2017-10-03 12:57:52: ERROR[Main]: ignore:init.lua:15: in main chunk
2017-10-03 12:57:52: ERROR[Main]: Siehe debug.txt für Details.
Loaded texture: /data/Minetest/run/textures/base/pack/menu_header.png
Renaming it to register_on_receiving_chat_message fixed it.
Not kidding. That's effective an error. In order to follow the other callback naming, this function was renamed to "register_on_receiving_chat_message" in
https://github.com/minetest/minetest/commit/44495ea . To properly fix this issue, you should use this code:
Code: Select all
if not minetest.register_on_receiving_chat_message then
minetest.register_on_receiving_chat_message = minetest.register_on_receiving_chat_messages
end
and use the new, corrected function name.