mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-21 18:11:11 +00:00
Disallow object:remove() if the object is a player
Rebased by Zeno- (conflict in lua_api.txt)
This commit is contained in:
parent
cd4324e5a8
commit
38cf080a9c
2 changed files with 2 additions and 0 deletions
|
@ -2294,6 +2294,7 @@ This is basically a reference to a C++ `ServerActiveObject`
|
|||
|
||||
#### Methods
|
||||
* `remove()`: remove object (after returning from Lua)
|
||||
* Note: Doesn't work on players, use minetest.kick_player instead
|
||||
* `getpos()`: returns `{x=num, y=num, z=num}`
|
||||
* `setpos(pos)`; `pos`=`{x=num, y=num, z=num}`
|
||||
* `moveto(pos, continuous=false)`: interpolated move
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue