diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-12 19:07:20 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-12 19:07:20 +0200 |
commit | fcf558173e3bb9b2213c610815f82088e7541a1e (patch) | |
tree | e5a4d860acbd2dd5c8cff6adc33ff80ba5c663a7 /src/Blocks/BlockBed.cpp | |
parent | Only place farmland if no block is upper than dirt/grass. (diff) | |
download | cuberite-fcf558173e3bb9b2213c610815f82088e7541a1e.tar cuberite-fcf558173e3bb9b2213c610815f82088e7541a1e.tar.gz cuberite-fcf558173e3bb9b2213c610815f82088e7541a1e.tar.bz2 cuberite-fcf558173e3bb9b2213c610815f82088e7541a1e.tar.lz cuberite-fcf558173e3bb9b2213c610815f82088e7541a1e.tar.xz cuberite-fcf558173e3bb9b2213c610815f82088e7541a1e.tar.zst cuberite-fcf558173e3bb9b2213c610815f82088e7541a1e.zip |
Diffstat (limited to 'src/Blocks/BlockBed.cpp')
-rw-r--r-- | src/Blocks/BlockBed.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Blocks/BlockBed.cpp b/src/Blocks/BlockBed.cpp index cd5783f58..cd1cc2a5f 100644 --- a/src/Blocks/BlockBed.cpp +++ b/src/Blocks/BlockBed.cpp @@ -15,7 +15,7 @@ void cBlockBedHandler::OnPlacedByPlayer( if (a_BlockMeta < 8) { Vector3i Direction = MetaDataToDirection(a_BlockMeta); - a_ChunkInterface.SetBlock(a_WorldInterface, a_BlockX + Direction.x, a_BlockY, a_BlockZ + Direction.z, E_BLOCK_BED, a_BlockMeta | 0x8); + a_ChunkInterface.SetBlock(a_BlockX + Direction.x, a_BlockY, a_BlockZ + Direction.z, E_BLOCK_BED, a_BlockMeta | 0x8); } } |