mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Devtest: Automatically enable zoom capability (#10493)
Make minor improvements to the zoom testing chat command. Delete incorrect line about creative mode from README.md.
This commit is contained in:
parent
c7aa92aaed
commit
4d9c9186ce
2 changed files with 6 additions and 5 deletions
|
@ -36,8 +36,12 @@ minetest.register_chatcommand("hp", {
|
|||
end,
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("zoom", {
|
||||
params = "[<zoom_fov>]",
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
player:set_properties({zoom_fov = 15})
|
||||
end)
|
||||
|
||||
minetest.register_chatcommand("zoomfov", {
|
||||
params = "[<FOV>]",
|
||||
description = "Set or display your zoom_fov",
|
||||
func = function(name, param)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
|
@ -58,8 +62,6 @@ minetest.register_chatcommand("zoom", {
|
|||
end,
|
||||
})
|
||||
|
||||
|
||||
|
||||
local s_infplace = minetest.settings:get("devtest_infplace")
|
||||
if s_infplace == "true" then
|
||||
infplace = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue