diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2020-09-05 17:07:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 17:07:01 +0200 |
commit | 2d197e147e4ede9b2b38692a88f620e78feba437 (patch) | |
tree | 8b2e90e59898ef4c029d72a696b7bed71c5a2f25 /src/WorldStorage/WSSAnvil.cpp | |
parent | WriteConsoleInput can return FALSE when running as servic (diff) | |
download | cuberite-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 '')
-rwxr-xr-x | src/WorldStorage/WSSAnvil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index ebeb198b1..a62971e7c 100755 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -1419,7 +1419,7 @@ OwnedBlockEntity cWSSAnvil::LoadNoteBlockFromNBT(const cParsedNBT & a_NBT, int a int note = a_NBT.FindChildByName(a_TagIdx, "note"); if (note >= 0) { - NoteBlock->SetPitch(static_cast<char>(a_NBT.GetByte(note))); + NoteBlock->SetNote(static_cast<char>(a_NBT.GetByte(note))); } return NoteBlock; } |