summaryrefslogtreecommitdiffstats
path: root/src/Generating/PrefabPiecePool.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-11-27 09:29:13 +0100
committerMattes D <github@xoft.cz>2015-12-01 10:35:08 +0100
commit2c3d9333496aa235ec6789bc6bf4f5c5396c6f91 (patch)
tree3919bee03a6165d233c020269c2b9adb419f73dd /src/Generating/PrefabPiecePool.cpp
parentAdded PieceStructures generator. (diff)
downloadcuberite-2c3d9333496aa235ec6789bc6bf4f5c5396c6f91.tar
cuberite-2c3d9333496aa235ec6789bc6bf4f5c5396c6f91.tar.gz
cuberite-2c3d9333496aa235ec6789bc6bf4f5c5396c6f91.tar.bz2
cuberite-2c3d9333496aa235ec6789bc6bf4f5c5396c6f91.tar.lz
cuberite-2c3d9333496aa235ec6789bc6bf4f5c5396c6f91.tar.xz
cuberite-2c3d9333496aa235ec6789bc6bf4f5c5396c6f91.tar.zst
cuberite-2c3d9333496aa235ec6789bc6bf4f5c5396c6f91.zip
Diffstat (limited to 'src/Generating/PrefabPiecePool.cpp')
-rw-r--r--src/Generating/PrefabPiecePool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/PrefabPiecePool.cpp b/src/Generating/PrefabPiecePool.cpp
index d4235f9dd..e1bb9f684 100644
--- a/src/Generating/PrefabPiecePool.cpp
+++ b/src/Generating/PrefabPiecePool.cpp
@@ -186,8 +186,8 @@ bool cPrefabPiecePool::LoadFromString(const AString & a_Contents, const AString
}
}
- // Read the first 4 KiB of the file in order to auto-detect format:
- auto Header = a_Contents.substr(0, 4096);
+ // Search the first 8 KiB of the file for the format auto-detection string:
+ auto Header = a_Contents.substr(0, 8192);
if (Header.find("CubesetFormatVersion =") != AString::npos)
{
return LoadFromCubeset(a_Contents, a_FileName, a_LogWarnings);