mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
scriptenv?
This commit is contained in:
parent
d213902648
commit
635e512142
26 changed files with 128 additions and 158 deletions
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include "ContentPack.h"
|
||||
#include "../logic/scripting/scripting.h"
|
||||
#include "../logic/scripting/Environment.h"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
|
|
@ -328,7 +327,7 @@ void ContentLoader::load(ContentBuilder& builder) {
|
|||
|
||||
auto runtime = new ContentPackRuntime(*pack, scripting::create_pack_environment(*pack));
|
||||
builder.add(runtime);
|
||||
env = runtime->getEnvironment()->getId();
|
||||
env = runtime->getEnvironment();
|
||||
ContentPackStats& stats = runtime->getStatsWriteable();
|
||||
|
||||
fixPackIndices();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue