mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix: commands repository not reset before world open
This commit is contained in:
parent
9ed80ec835
commit
1a00a91b60
3 changed files with 11 additions and 1 deletions
|
|
@ -68,7 +68,6 @@ void scripting::initialize(Engine* engine) {
|
|||
lua::initialize(*engine->getPaths());
|
||||
|
||||
load_script(fs::path("stdlib.lua"), true);
|
||||
load_script(fs::path("stdcmd.lua"), true);
|
||||
load_script(fs::path("classes.lua"), true);
|
||||
}
|
||||
|
||||
|
|
@ -172,6 +171,7 @@ void scripting::on_content_load(Content* content) {
|
|||
lua::setfield(L, "materials");
|
||||
lua::pop(L);
|
||||
}
|
||||
load_script(fs::path("stdcmd.lua"), true);
|
||||
}
|
||||
|
||||
void scripting::on_world_load(LevelController* controller) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue