summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2013-09-11 14:48:08 +0200
committerworktycho <work.tycho@gmail.com>2013-09-11 14:48:08 +0200
commit3236364eeed10603e7aa9e2a50b82620d2703f7e (patch)
tree4ee9a5b41e7d969c64860f89ec97d1adac2ef486
parentAdded player void damage (diff)
downloadcuberite-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
-rw-r--r--source/Blocks/BlockPumpkin.h6
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;
}