mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-21 11:55:43 +02:00
Enable shadows by default in devtest (#12157)
* Move all shadow control to util_commands * Shadows are now controlled with /set_shadow Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
core.register_chatcommand("set_lighting", {
|
||||
params = "shadow_intensity",
|
||||
description = "Set lighting parameters.",
|
||||
func = function(player_name, param)
|
||||
local shadow_intensity = tonumber(param)
|
||||
minetest.get_player_by_name(player_name):set_lighting({shadows = { intensity = shadow_intensity} })
|
||||
end
|
||||
})
|
Reference in New Issue
Block a user