diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-13 01:21:43 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-13 01:21:43 +0200 |
commit | 69afc4dbba9ea22ed53756d0ec2b8ff138ddf781 (patch) | |
tree | 237871b3c615fa6e1f96b89133d3d6df4e2360dd /src/ChunkMap.cpp | |
parent | Merge branch 'master' into 1.8-Protocol (diff) | |
parent | Fixed friction being applied whilst airborne (diff) | |
download | cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar.gz cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar.bz2 cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar.lz cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar.xz cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar.zst cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkMap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index e03c9b86c..828d8f164 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); } |