Replace getpos() with get_pos()
This commit is contained in:
parent
1f1361d179
commit
e789801662
58 changed files with 105 additions and 105 deletions
|
@ -334,7 +334,7 @@ minetest.register_chatcommand("spawnstruct", {
|
|||
description = "Generate a pre-defined structure near your position.",
|
||||
privs = {debug = true},
|
||||
func = function(name, param)
|
||||
local pos= minetest.get_player_by_name(name):getpos()
|
||||
local pos= minetest.get_player_by_name(name):get_pos()
|
||||
if not pos then
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue