Skip to content

Commit

Permalink
Fix region data reading for linux dedicated server export
Browse files Browse the repository at this point in the history
  • Loading branch information
Zennii authored and TokisanGames committed Feb 10, 2025
1 parent 0933975 commit 9c10fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terrain_3d_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ void Terrain3DData::load_directory(const String &p_dir) {
LOG(INFO, "Loading region files from ", p_dir);
PackedStringArray files = da->get_files();
for (int i = 0; i < files.size(); i++) {
String fname = files[i];
String fname = files[i].trim_suffix(".remap");
String path = p_dir + String("/") + fname;
if (!fname.begins_with("terrain3d") || !fname.ends_with(".res")) {
continue;
Expand Down

0 comments on commit 9c10fc6

Please sign in to comment.