origin fix
This commit is contained in:
parent
d345ac4351
commit
1632c43d47
@ -1,6 +1,11 @@
|
||||
|
||||
minetest.register_chatcommand("scad_origin", {
|
||||
func = function(name)
|
||||
mtscad.set_origin(name)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
if player then
|
||||
local pos = vector.round(player:get_pos())
|
||||
mtscad.set_origin(name, pos)
|
||||
return true, "Origin set to " .. minetest.pos_to_string(pos)
|
||||
end
|
||||
end
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user