mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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();
|
||||
reconfig_packs_inside(manager, names, packsToAdd, packsToRemove);
|
||||
|
||||
const auto& settings = engine.getSettings();
|
||||
auto& wfile = *world->wfile;
|
||||
wfile.removeIndices(packsToRemove);
|
||||
if (!settings.debug.generatorTestMode.get()) {
|
||||
wfile.removeIndices(packsToRemove);
|
||||
}
|
||||
wfile.writePacks(manager.getAll(names));
|
||||
reopenWorld(world);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue