mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
fix: app.reconfig_packs attempts to remove indices in generator test mode
This commit is contained in:
parent
38bebac37e
commit
ce189c810d
1 changed files with 4 additions and 1 deletions
|
|
@ -378,8 +378,11 @@ void EngineController::reconfigPacks(
|
||||||
auto& manager = contentControl.scan();
|
auto& manager = contentControl.scan();
|
||||||
reconfig_packs_inside(manager, names, packsToAdd, packsToRemove);
|
reconfig_packs_inside(manager, names, packsToAdd, packsToRemove);
|
||||||
|
|
||||||
|
const auto& settings = engine.getSettings();
|
||||||
auto& wfile = *world->wfile;
|
auto& wfile = *world->wfile;
|
||||||
wfile.removeIndices(packsToRemove);
|
if (!settings.debug.generatorTestMode.get()) {
|
||||||
|
wfile.removeIndices(packsToRemove);
|
||||||
|
}
|
||||||
wfile.writePacks(manager.getAll(names));
|
wfile.writePacks(manager.getAll(names));
|
||||||
reopenWorld(world);
|
reopenWorld(world);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue