summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.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/ChunkMap.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/ChunkMap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index 9c105c5af..e8728091f 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -1287,12 +1287,12 @@ void cChunkMap::SetBlockMeta(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYP
-void cChunkMap::SetBlock(cWorldInterface & a_WorldInterface, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, bool a_SendToClients)
+void cChunkMap::SetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, bool a_SendToClients)
{
cChunkInterface ChunkInterface(this);
if (a_BlockType == E_BLOCK_AIR)
{
- BlockHandler(GetBlock(a_BlockX, a_BlockY, a_BlockZ))->OnDestroyed(ChunkInterface, a_WorldInterface, a_BlockX, a_BlockY, a_BlockZ);
+ BlockHandler(GetBlock(a_BlockX, a_BlockY, a_BlockZ))->OnDestroyed(ChunkInterface, *m_World, a_BlockX, a_BlockY, a_BlockZ);
}
int ChunkX, ChunkZ, X = a_BlockX, Y = a_BlockY, Z = a_BlockZ;
@@ -1305,7 +1305,7 @@ void cChunkMap::SetBlock(cWorldInterface & a_WorldInterface, int a_BlockX, int a
Chunk->SetBlock(X, Y, Z, a_BlockType, a_BlockMeta, a_SendToClients);
m_World->GetSimulatorManager()->WakeUp(a_BlockX, a_BlockY, a_BlockZ, Chunk);
}
- BlockHandler(a_BlockType)->OnPlaced(ChunkInterface, a_WorldInterface, a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_BlockMeta);
+ BlockHandler(a_BlockType)->OnPlaced(ChunkInterface, *m_World, a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_BlockMeta);
}