diff options
author | worktycho <work.tycho@gmail.com> | 2013-09-11 14:48:08 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2013-09-11 14:48:08 +0200 |
commit | 3236364eeed10603e7aa9e2a50b82620d2703f7e (patch) | |
tree | 4ee9a5b41e7d969c64860f89ec97d1adac2ef486 | |
parent | Added player void damage (diff) | |
download | cuberite-3236364eeed10603e7aa9e2a50b82620d2703f7e.tar cuberite-3236364eeed10603e7aa9e2a50b82620d2703f7e.tar.gz cuberite-3236364eeed10603e7aa9e2a50b82620d2703f7e.tar.bz2 cuberite-3236364eeed10603e7aa9e2a50b82620d2703f7e.tar.lz cuberite-3236364eeed10603e7aa9e2a50b82620d2703f7e.tar.xz cuberite-3236364eeed10603e7aa9e2a50b82620d2703f7e.tar.zst cuberite-3236364eeed10603e7aa9e2a50b82620d2703f7e.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Blocks/BlockPumpkin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Blocks/BlockPumpkin.h b/source/Blocks/BlockPumpkin.h index 3c9bec43a..5db4f98e9 100644 --- a/source/Blocks/BlockPumpkin.h +++ b/source/Blocks/BlockPumpkin.h @@ -1,4 +1,3 @@ - #pragma once #include "BlockHandler.h" @@ -23,8 +22,9 @@ public: ) override { a_BlockType = m_BlockType; - - a_BlockMeta = PlayerYawToMetaData(a_Player->GetRotation() - 180); + double a_Rotation = a_Player->GetRotation() + a_Rotation = -1 * a_Rotation; + a_BlockMeta = PlayerYawToMetaData(a_Rotation); return true; } |