1
0
Fork 0
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:
Paramat 2020-10-20 22:13:27 +01:00 committed by GitHub
parent c7aa92aaed
commit 4d9c9186ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

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