diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-31 12:13:11 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-31 12:13:11 +0200 |
commit | 556fc908aedcc36388e9d859487b140045e5e33e (patch) | |
tree | 2dccc3b803528418ea3044a8cefe124028903447 /src/WorldStorage/NBTChunkSerializer.cpp | |
parent | Added window update. (diff) | |
download | cuberite-556fc908aedcc36388e9d859487b140045e5e33e.tar cuberite-556fc908aedcc36388e9d859487b140045e5e33e.tar.gz cuberite-556fc908aedcc36388e9d859487b140045e5e33e.tar.bz2 cuberite-556fc908aedcc36388e9d859487b140045e5e33e.tar.lz cuberite-556fc908aedcc36388e9d859487b140045e5e33e.tar.xz cuberite-556fc908aedcc36388e9d859487b140045e5e33e.tar.zst cuberite-556fc908aedcc36388e9d859487b140045e5e33e.zip |
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index 63387c33d..601cd8833 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -182,8 +182,8 @@ void cNBTChunkSerializer::AddBeaconEntity(cBeaconEntity * a_Entity) m_Writer.BeginCompound(""); AddBasicTileEntity(a_Entity, "Beacon"); m_Writer.AddInt("Levels", a_Entity->GetBeaconLevel()); - m_Writer.AddInt("Primary", (int)a_Entity->GetPrimaryPotion()); - m_Writer.AddInt("Secondary", (int)a_Entity->GetSecondaryPotion()); + m_Writer.AddInt("Primary", (int)a_Entity->GetPrimaryEffect()); + m_Writer.AddInt("Secondary", (int)a_Entity->GetSecondaryEffect()); m_Writer.BeginList("Items", TAG_Compound); AddItemGrid(a_Entity->GetContents()); m_Writer.EndList(); |