Round pos in spawnstruct chatcommand
This commit is contained in:
parent
4a7aaa9024
commit
b3e1df7e9b
|
@ -463,10 +463,11 @@ minetest.register_chatcommand("spawnstruct", {
|
|||
description = S("Generate a pre-defined structure near your position."),
|
||||
privs = {debug = true},
|
||||
func = function(name, param)
|
||||
local pos= minetest.get_player_by_name(name):get_pos()
|
||||
local pos = minetest.get_player_by_name(name):get_pos()
|
||||
if not pos then
|
||||
return
|
||||
end
|
||||
pos = vector.round(pos)
|
||||
local errord = false
|
||||
local message = S("Structure placed.")
|
||||
if param == "village" then
|
||||
|
|
Loading…
Reference in New Issue
Block a user