summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/FireworksSerializer.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/FireworksSerializer.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/FireworksSerializer.cpp')
-rw-r--r--src/WorldStorage/FireworksSerializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/FireworksSerializer.cpp b/src/WorldStorage/FireworksSerializer.cpp
index f0fe7e48e..6616196e2 100644
--- a/src/WorldStorage/FireworksSerializer.cpp
+++ b/src/WorldStorage/FireworksSerializer.cpp
@@ -108,7 +108,7 @@ void cFireworkItem::ParseFromNBT(cFireworkItem & a_FireworkItem, const cParsedNB
const auto * ColourData = (a_NBT.GetData(explosiontag));
for (size_t i = 0; i < DataLength; i += 4)
{
- a_FireworkItem.m_Colours.push_back(GetBEInt(ColourData + i));
+ a_FireworkItem.m_Colours.push_back(NetworkBufToHost<Int32>(ColourData + i));
}
}
else if (ExplosionName == "FadeColors")
@@ -124,7 +124,7 @@ void cFireworkItem::ParseFromNBT(cFireworkItem & a_FireworkItem, const cParsedNB
const auto * FadeColourData = (a_NBT.GetData(explosiontag));
for (size_t i = 0; i < DataLength; i += 4)
{
- a_FireworkItem.m_FadeColours.push_back(GetBEInt(FadeColourData + i));
+ a_FireworkItem.m_FadeColours.push_back(NetworkBufToHost<Int32>(FadeColourData + i));
}
}
}