diff options
Diffstat (limited to 'src/WorldStorage')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 2 | ||||
-rwxr-xr-x | src/WorldStorage/WSSAnvil.cpp | 2 |
2 files changed, 2 insertions, 2 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(); } 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; } |