mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Remove weather override setting
This commit is contained in:
parent
98e66f74ca
commit
37bcb9449d
1 changed files with 0 additions and 13 deletions
|
@ -192,16 +192,3 @@ local weather_allow_abm = minetest.setting_getbool("weather_allow_abm")
|
|||
if weather_allow_abm ~= nil and weather_allow_abm == false then
|
||||
weather.allow_abm = false
|
||||
end
|
||||
|
||||
-- Overrides nodes 'sunlight_propagates' attribute for efficient indoor check (e.g. for glass roof).
|
||||
-- Controlled from minetest.conf setting and by default it is disabled.
|
||||
-- To enable set weather_allow_override_nodes to true.
|
||||
-- Only new nodes will be effected (glass roof needs to be rebuilded).
|
||||
if minetest.setting_getbool("weather_allow_override_nodes") then
|
||||
if minetest.registered_nodes["default:glass"] then
|
||||
minetest.override_item("default:glass", {sunlight_propagates = false})
|
||||
end
|
||||
if minetest.registered_nodes["default:meselamp"] then
|
||||
minetest.override_item("default:meselamp", {sunlight_propagates = false})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue