summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
author12xx12 <44411062+12xx12@users.noreply.github.com>2020-09-05 17:07:01 +0200
committerGitHub <noreply@github.com>2020-09-05 17:07:01 +0200
commit2d197e147e4ede9b2b38692a88f620e78feba437 (patch)
tree8b2e90e59898ef4c029d72a696b7bed71c5a2f25 /src/WorldStorage/NBTChunkSerializer.cpp
parentWriteConsoleInput can return FALSE when running as servic (diff)
downloadcuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar.gz
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar.bz2
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar.lz
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar.xz
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar.zst
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index 51ca81663..419115ea0 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -532,7 +532,7 @@ public:
{
mWriter.BeginCompound("");
AddBasicTileEntity(a_Note, "Music");
- mWriter.AddByte("note", static_cast<Byte>(a_Note->GetPitch()));
+ mWriter.AddByte("note", static_cast<Byte>(a_Note->GetNote()));
mWriter.EndCompound();
}