Skip to content

Commit 25fb211

Browse files
committed
Fixed missing config.txt for schematic files
1 parent bd31b39 commit 25fb211

File tree

3 files changed

+457
-1
lines changed

3 files changed

+457
-1
lines changed

SchematicToVoxCore/Converter/SchematicToSchematic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private void LoadBlocks()
3434
string line;
3535
int counter = 0;
3636
// Read the file and display it line by line.
37-
StreamReader file = new StreamReader(@"schematics/config.txt");
37+
StreamReader file = new StreamReader(@"./schematics/config.txt");
3838
Console.WriteLine("[INFO] Started to read config.txt for loading blocks colors");
3939
while ((line = file.ReadLine()) != null)
4040
{

SchematicToVoxCore/FileToVox.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
<None Update="JsonPresets\terrainGenerator.json">
7272
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7373
</None>
74+
<None Update="schematics\config.txt">
75+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
76+
</None>
7477
</ItemGroup>
7578

7679
<ProjectExtensions><VisualStudio><UserProperties /></VisualStudio></ProjectExtensions>

0 commit comments

Comments
 (0)