summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/WSSAnvil.cpp
diff options
context:
space:
mode:
authorAsh <ash@heyquark.com>2024-11-03 16:33:40 +0100
committerGitHub <noreply@github.com>2024-11-03 16:33:40 +0100
commitd82a6afd9e8be53d60043c8ab49223ac9470ad46 (patch)
tree6ef640f49754abdde3b541b2e756feffa3ccab05 /src/WorldStorage/WSSAnvil.cpp
parentMake biomal composition gen respect the shapegen when placing bedrock (#5579) (diff)
downloadcuberite-d82a6afd9e8be53d60043c8ab49223ac9470ad46.tar
cuberite-d82a6afd9e8be53d60043c8ab49223ac9470ad46.tar.gz
cuberite-d82a6afd9e8be53d60043c8ab49223ac9470ad46.tar.bz2
cuberite-d82a6afd9e8be53d60043c8ab49223ac9470ad46.tar.lz
cuberite-d82a6afd9e8be53d60043c8ab49223ac9470ad46.tar.xz
cuberite-d82a6afd9e8be53d60043c8ab49223ac9470ad46.tar.zst
cuberite-d82a6afd9e8be53d60043c8ab49223ac9470ad46.zip
Diffstat (limited to 'src/WorldStorage/WSSAnvil.cpp')
-rw-r--r--src/WorldStorage/WSSAnvil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp
index 6b425c4dc..0f91b033b 100644
--- a/src/WorldStorage/WSSAnvil.cpp
+++ b/src/WorldStorage/WSSAnvil.cpp
@@ -510,7 +510,7 @@ bool cWSSAnvil::LoadHeightMapFromNBT(cChunkDef::HeightMap & a_HeightMap, const c
for (int RelX = 0; RelX < cChunkDef::Width; RelX++)
{
const int Index = 4 * (RelX + RelZ * cChunkDef::Width);
- const int Height = GetBEInt(HeightData + Index);
+ const int Height = NetworkBufToHost<Int32>(HeightData + Index);
if (Height > std::numeric_limits<HEIGHTTYPE>::max())
{