diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-04-20 21:46:04 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-05-01 00:04:56 +0200 |
commit | 0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d (patch) | |
tree | afe3041898d51e53ca693861564792e0d828774e /src/Items/ItemItemFrame.h | |
parent | NBT: Dynamic list-max-count protection. (#4697) (diff) | |
download | cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar.gz cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar.bz2 cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar.lz cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar.xz cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar.zst cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.zip |
Diffstat (limited to 'src/Items/ItemItemFrame.h')
-rw-r--r-- | src/Items/ItemItemFrame.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Items/ItemItemFrame.h b/src/Items/ItemItemFrame.h index bcc325701..2c191a003 100644 --- a/src/Items/ItemItemFrame.h +++ b/src/Items/ItemItemFrame.h @@ -41,7 +41,7 @@ public: } // Make sure block that will be occupied by the item frame is free now: - auto PlacePos = AddFaceDirection(a_ClickedBlockPos, a_ClickedBlockFace); + const auto PlacePos = AddFaceDirection(a_ClickedBlockPos, a_ClickedBlockFace); BLOCKTYPE Block = a_World->GetBlock(PlacePos); if (Block != E_BLOCK_AIR) { @@ -49,7 +49,7 @@ public: } // Place the item frame: - auto ItemFrame = cpp14::make_unique<cItemFrame>(a_ClickedBlockFace, a_ClickedBlockPos); + auto ItemFrame = cpp14::make_unique<cItemFrame>(a_ClickedBlockFace, PlacePos); auto ItemFramePtr = ItemFrame.get(); if (!ItemFramePtr->Initialize(std::move(ItemFrame), *a_World)) { |