mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
[CSM] Add function to get the server protocol version. (#5529)
This commit is contained in:
parent
be06636965
commit
88b9b9652a
4 changed files with 15 additions and 0 deletions
|
@ -696,6 +696,9 @@ Call these functions only at load time!
|
|||
* `minetest.disconnect()`
|
||||
* Disconnect from the server and exit to main menu.
|
||||
* Returns `false` if the client is already disconnecting otherwise returns `true`.
|
||||
* `minetest.get_protocol_version()`
|
||||
* Returns the protocol version of the server.
|
||||
* Might not be accurate at start up as the client might not be connected to the server yet, in that case it will return 0.
|
||||
|
||||
### Misc.
|
||||
* `minetest.parse_json(string[, nullvalue])`: returns something
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue