mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 07:32:24 +01:00
Fix switch from "skybox" to other sky types as triggered by player:set_sky()
This commit is contained in:
parent
f70e0556fc
commit
1cea2f1b49
@ -2532,7 +2532,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
|
|||||||
else if (event.type == CE_SET_SKY) {
|
else if (event.type == CE_SET_SKY) {
|
||||||
sky->setVisible(false);
|
sky->setVisible(false);
|
||||||
if(skybox){
|
if(skybox){
|
||||||
skybox->drop();
|
skybox->remove();
|
||||||
skybox = NULL;
|
skybox = NULL;
|
||||||
}
|
}
|
||||||
// Handle according to type
|
// Handle according to type
|
||||||
|
Loading…
Reference in New Issue
Block a user