minetest-toolkit / minetest-lsp-api

LSP headers for Minetest
MIT License
5 stars 2 forks source link

Function `minetest.register_on_formspec_input` is not available #12

Closed lua-rocks closed 1 year ago

lua-rocks commented 1 year ago

Function minetest.register_on_formspec_input described in client API is not available in Minetest 5.7

Perhaps client mods need to be declared in some special way in order to use client functions?

lua-rocks commented 1 year ago

I got it. Indeed, this function and all the others work only if the mod is enabled as CSM in a special way. I didn't know about it.

I played around a bit with the client modifications and realized that they are very different from the server modifications and should not be mixed. For example, the server version of minetest.log can work with only one argument - message, while the client version necessarily requires specifying a level! #8