summaryrefslogtreecommitdiff
path: root/doc/client_lua_api.txt
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2018-01-21 17:27:27 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-21 18:27:27 +0100
commit49ff1d2ea8af6bf0e89fcab83522e3c55625b620 (patch)
tree0209962f1e759943d6e212a19e9cc58d71618abe /doc/client_lua_api.txt
parent5dab7426451842793b183fbd961ad2ae83c8acbd (diff)
downloadminetest-49ff1d2ea8af6bf0e89fcab83522e3c55625b620.tar.gz
minetest-49ff1d2ea8af6bf0e89fcab83522e3c55625b620.tar.bz2
minetest-49ff1d2ea8af6bf0e89fcab83522e3c55625b620.zip
[CSM] Remove `on_connect` callback (#6941)
Fixes #6939
Diffstat (limited to 'doc/client_lua_api.txt')
-rw-r--r--doc/client_lua_api.txt17
1 files changed, 1 insertions, 16 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index 566b86255..31142cae2 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -651,8 +651,6 @@ Call these functions only at load time!
* **Warning**: If the client terminates abnormally (i.e. crashes), the registered
callbacks **will likely not be run**. Data should be saved at
semi-frequent intervals as well as on server shutdown.
-* `minetest.register_on_connect(func())`
- * Called at the end of client connection (when player is loaded onto map)
* `minetest.register_on_receiving_chat_message(func(message))`
* Called always when a client receive a message
* Return `true` to mark the message as handled, which means that it will not be shown to chat
@@ -784,8 +782,6 @@ Call these functions only at load time!
* Client joins channel `channel_name`, and creates it, if necessary. You
should listen from incoming messages with `minetest.register_on_modchannel_message`
call to receive incoming messages. Warning, this function is asynchronous.
- * You should use a minetest.register_on_connect(function() ... end) to perform
- a successful channel join on client startup.
### Particles
* `minetest.add_particle(particle definition)`
@@ -935,18 +931,7 @@ Please do not try to access the reference until the camera is initialized, other
* Returns aspect ratio of screen
### LocalPlayer
-An interface to retrieve information about the player. The player is
-not accessible until the client is fully done loading and therefore
-not at module init time.
-
-To get the localplayer handle correctly, use `on_connect()` as follows:
-
-```lua
-local localplayer
-minetest.register_on_connect(function()
- localplayer = minetest.localplayer
-end)
-```
+An interface to retrieve information about the player.
Methods: