mirror of
https://github.com/cuberite/cuberite.git
synced 2025-01-07 03:16:55 +08:00
Fix filename template for saved maps (#5556)
* Fix filename template for saved maps Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk> * First patch - added to CONTRIBUTORS Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk> --------- Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk>
This commit is contained in:
parent
09859af405
commit
81d40127c1
@ -59,6 +59,7 @@ mcfadyeni
|
||||
MeMuXin
|
||||
mgueydan
|
||||
MikeHunsinger
|
||||
mjagdis (Mike Jagdis)
|
||||
Morritz (TJ)
|
||||
morsmordere (Anzhelika Iugai)
|
||||
mtilden
|
||||
|
@ -18,7 +18,7 @@ cMapSerializer::cMapSerializer(const AString & a_WorldName, cMap * a_Map):
|
||||
m_Map(a_Map)
|
||||
{
|
||||
auto DataPath = fmt::format(FMT_STRING("{}{}data"), a_WorldName, cFile::PathSeparator());
|
||||
m_Path = fmt::format(FMT_STRING("{}{}map_%i.dat"), DataPath, cFile::PathSeparator(), a_Map->GetID());
|
||||
m_Path = fmt::format(FMT_STRING("{}{}map_{}.dat"), DataPath, cFile::PathSeparator(), a_Map->GetID());
|
||||
cFile::CreateFolder(DataPath);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user