diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-18 22:33:33 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-18 22:33:33 +0100 |
commit | 05789f9e66abd9ad211fb27fb36bb45915c6d19e (patch) | |
tree | 40456a83eb6dfff76613df54cc3a41f1cbd49030 /src/Items/ItemItemFrame.h | |
parent | Merge branch 'itemframes' of https://github.com/mc-server/MCServer into itemframes (diff) | |
download | cuberite-05789f9e66abd9ad211fb27fb36bb45915c6d19e.tar cuberite-05789f9e66abd9ad211fb27fb36bb45915c6d19e.tar.gz cuberite-05789f9e66abd9ad211fb27fb36bb45915c6d19e.tar.bz2 cuberite-05789f9e66abd9ad211fb27fb36bb45915c6d19e.tar.lz cuberite-05789f9e66abd9ad211fb27fb36bb45915c6d19e.tar.xz cuberite-05789f9e66abd9ad211fb27fb36bb45915c6d19e.tar.zst cuberite-05789f9e66abd9ad211fb27fb36bb45915c6d19e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemItemFrame.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/Items/ItemItemFrame.h b/src/Items/ItemItemFrame.h index f286fffd0..4875e09dc 100644 --- a/src/Items/ItemItemFrame.h +++ b/src/Items/ItemItemFrame.h @@ -33,19 +33,7 @@ public: if (Block == E_BLOCK_AIR) { - int Dir = 0; - - // The client uses different values for painting directions and block faces. Our constants are for the block faces, so we convert them here to painting faces - switch (a_Dir) - { - case BLOCK_FACE_ZP: break; // Initialised to zero - case BLOCK_FACE_ZM: Dir = 2; break; - case BLOCK_FACE_XM: Dir = 1; break; - case BLOCK_FACE_XP: Dir = 3; break; - default: ASSERT(!"Unhandled block face when trying spawn item frame!"); return false; - } - - cItemFrame * ItemFrame = new cItemFrame(Dir, a_BlockX, a_BlockY, a_BlockZ); + cItemFrame * ItemFrame = new cItemFrame(a_Dir, a_BlockX, a_BlockY, a_BlockZ); ItemFrame->Initialize(a_World); if (!a_Player->IsGameModeCreative()) |