summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockBed.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-12 19:07:20 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-12 19:07:20 +0200
commitfcf558173e3bb9b2213c610815f82088e7541a1e (patch)
treee5a4d860acbd2dd5c8cff6adc33ff80ba5c663a7 /src/Blocks/BlockBed.cpp
parentOnly place farmland if no block is upper than dirt/grass. (diff)
downloadcuberite-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 '')
-rw-r--r--src/Blocks/BlockBed.cpp2
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);
}
}