Add options to disable vignette
This commit is contained in:
parent
9ea78879ad
commit
3ac8edbcc5
@ -110,6 +110,10 @@ ambiance_disable_birds = false
|
||||
ambiance_disable_crickets = false
|
||||
ambiance_disable_flowing_water = false
|
||||
|
||||
# Vignette (more of a personal preference thing, but may reduce performance)
|
||||
|
||||
vignette_enable = true
|
||||
|
||||
# Server (user stuff)
|
||||
|
||||
max_users = 16
|
||||
|
@ -3,6 +3,9 @@
|
||||
-- By KaadmY, for Pixture
|
||||
--
|
||||
|
||||
local enable_vignette = minetest.settings:get_bool("vignette_enable")
|
||||
|
||||
if enable_vignette then
|
||||
local vignette_definition = {
|
||||
hud_elem_type = "image",
|
||||
position = {x = 0.5, y = 0.5},
|
||||
@ -20,5 +23,6 @@ local function on_joinplayer(player)
|
||||
end
|
||||
|
||||
minetest.register_on_joinplayer(on_joinplayer)
|
||||
end
|
||||
|
||||
default.log("mod:vignette", "loaded")
|
||||
|
Loading…
Reference in New Issue
Block a user