mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix switch from "skybox" to other sky types as triggered by player:set_sky()
This commit is contained in:
		@@ -2532,7 +2532,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
 | 
			
		||||
				else if (event.type == CE_SET_SKY) {
 | 
			
		||||
					sky->setVisible(false);
 | 
			
		||||
					if(skybox){
 | 
			
		||||
						skybox->drop();
 | 
			
		||||
						skybox->remove();
 | 
			
		||||
						skybox = NULL;
 | 
			
		||||
					}
 | 
			
		||||
					// Handle according to type
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user