origin fix

This commit is contained in:
BuckarooBanzay 2023-04-28 10:43:34 +02:00
parent d345ac4351
commit 1632c43d47

View File

@ -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
})