mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix incomplete content reset
This commit is contained in:
parent
6403757354
commit
61af8ba943
3 changed files with 7 additions and 0 deletions
|
|
@ -261,6 +261,11 @@ void scripting::on_content_load(Content* content) {
|
|||
load_script("stdcmd.lua", true);
|
||||
}
|
||||
|
||||
void scripting::on_content_reset() {
|
||||
scripting::content = nullptr;
|
||||
scripting::indices = nullptr;
|
||||
}
|
||||
|
||||
void scripting::on_world_load(LevelController* controller) {
|
||||
scripting::level = controller->getLevel();
|
||||
scripting::blocks = controller->getBlocksController();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue