mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-31 15:35:21 +01:00 
			
		
		
		
	Allow saturation to be controlled by the server. (#13075)
This commit is contained in:
		| @@ -223,3 +223,12 @@ core.register_chatcommand("set_shadow", { | ||||
|         minetest.get_player_by_name(player_name):set_lighting({shadows = { intensity = shadow_intensity} }) | ||||
|     end | ||||
| }) | ||||
|  | ||||
| core.register_chatcommand("set_saturation", { | ||||
|     params = "<saturation>", | ||||
|     description = "Set the saturation for current player.", | ||||
|     func = function(player_name, param) | ||||
|         local saturation = tonumber(param) | ||||
|         minetest.get_player_by_name(player_name):set_lighting({saturation = saturation }) | ||||
|     end | ||||
| }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user