diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-12-13 20:31:37 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-12-13 20:31:37 +0100 |
commit | 2a8c234f464ebf9986132c8ba435f1a1cec3461c (patch) | |
tree | 5cbecc238cd5df4d9f3b86c5551327b8485e45d9 /src/Blocks | |
parent | Merge branch 'master' into Cocoa (diff) | |
download | cuberite-2a8c234f464ebf9986132c8ba435f1a1cec3461c.tar cuberite-2a8c234f464ebf9986132c8ba435f1a1cec3461c.tar.gz cuberite-2a8c234f464ebf9986132c8ba435f1a1cec3461c.tar.bz2 cuberite-2a8c234f464ebf9986132c8ba435f1a1cec3461c.tar.lz cuberite-2a8c234f464ebf9986132c8ba435f1a1cec3461c.tar.xz cuberite-2a8c234f464ebf9986132c8ba435f1a1cec3461c.tar.zst cuberite-2a8c234f464ebf9986132c8ba435f1a1cec3461c.zip |
Diffstat (limited to 'src/Blocks')
-rw-r--r-- | src/Blocks/BlockCocoaPod.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockCocoaPod.h b/src/Blocks/BlockCocoaPod.h index 9e1d64cc6..cfd3b4479 100644 --- a/src/Blocks/BlockCocoaPod.h +++ b/src/Blocks/BlockCocoaPod.h @@ -38,7 +38,7 @@ public: { NIBBLETYPE Meta = a_Chunk.GetMeta(a_RelX, a_RelY, a_RelZ); NIBBLETYPE TypeMeta = Meta & 0x03; - int GrowState = (Meta & 0x12) >> 2; + int GrowState = (Meta & 0x0f) >> 2; if (GrowState < 2) { @@ -51,7 +51,7 @@ public: virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override { - int GrowState = (a_BlockMeta & 0x12) >> 2; + int GrowState = (a_BlockMeta & 0x0f) >> 2; a_Pickups.Add(E_ITEM_DYE, ((GrowState >= 2) ? 3 : 1), E_META_DYE_BROWN); } |