diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-31 18:15:39 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-31 18:15:39 +0200 |
commit | 6b1f7e7a45ebc04f39bb54edc85fbe9c9d0659e7 (patch) | |
tree | 193ada7fa748f645ca0064cd94e77d13393e83cc /src/WorldStorage/WSSAnvil.cpp | |
parent | Updated documentation. (diff) | |
download | cuberite-6b1f7e7a45ebc04f39bb54edc85fbe9c9d0659e7.tar cuberite-6b1f7e7a45ebc04f39bb54edc85fbe9c9d0659e7.tar.gz cuberite-6b1f7e7a45ebc04f39bb54edc85fbe9c9d0659e7.tar.bz2 cuberite-6b1f7e7a45ebc04f39bb54edc85fbe9c9d0659e7.tar.lz cuberite-6b1f7e7a45ebc04f39bb54edc85fbe9c9d0659e7.tar.xz cuberite-6b1f7e7a45ebc04f39bb54edc85fbe9c9d0659e7.tar.zst cuberite-6b1f7e7a45ebc04f39bb54edc85fbe9c9d0659e7.zip |
Diffstat (limited to 'src/WorldStorage/WSSAnvil.cpp')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index 555ef410d..d3a156ee1 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -771,13 +771,13 @@ void cWSSAnvil::LoadBeaconFromNBT(cBlockEntityList & a_BlockEntities, const cPar CurrentLine = a_NBT.FindChildByName(a_TagIdx, "Primary"); if (CurrentLine >= 0) { - Beacon->SelectPrimaryEffect((cEntityEffect::eType)a_NBT.GetInt(CurrentLine)); + Beacon->SetPrimaryEffect((cEntityEffect::eType)a_NBT.GetInt(CurrentLine)); } CurrentLine = a_NBT.FindChildByName(a_TagIdx, "Secondary"); if (CurrentLine >= 0) { - Beacon->SelectSecondaryEffect((cEntityEffect::eType)a_NBT.GetInt(CurrentLine)); + Beacon->SetSecondaryEffect((cEntityEffect::eType)a_NBT.GetInt(CurrentLine)); } // We are better than mojang, we load/save the beacon inventory! |