summaryrefslogtreecommitdiffstats
path: root/source/ChunkMap.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-12 09:14:06 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-12 09:14:06 +0200
commitfe3712284ebf1661a9c536dd51e32f757b66aba3 (patch)
tree90dec2ce1c58c781d3e06ad88f320d1d07e8d7cb /source/ChunkMap.cpp
parentProtectionAreas: Added a license file. (diff)
downloadcuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar
cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar.gz
cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar.bz2
cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar.lz
cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar.xz
cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar.zst
cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.zip
Diffstat (limited to '')
-rw-r--r--source/ChunkMap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/ChunkMap.cpp b/source/ChunkMap.cpp
index 785238d1d..a4ca99c9f 100644
--- a/source/ChunkMap.cpp
+++ b/source/ChunkMap.cpp
@@ -1794,17 +1794,17 @@ void cChunkMap::ChunkLoadFailed(int a_ChunkX, int a_ChunkY, int a_ChunkZ)
-void cChunkMap::UpdateSign(int a_X, int a_Y, int a_Z, const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4)
+bool cChunkMap::SetSignLines(int a_BlockX, int a_BlockY, int a_BlockZ, const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4)
{
cCSLock Lock(m_CSLayers);
int ChunkX, ChunkZ;
- cChunkDef::BlockToChunk(a_X, a_Y, a_Z, ChunkX, ChunkZ);
+ cChunkDef::BlockToChunk(a_BlockX, a_BlockY, a_BlockZ, ChunkX, ChunkZ);
cChunkPtr Chunk = GetChunkNoGen(ChunkX, ZERO_CHUNK_Y, ChunkZ);
if ((Chunk == NULL) || !Chunk->IsValid())
{
- return;
+ return false;
}
- Chunk->UpdateSign(a_X, a_Y, a_Z, a_Line1, a_Line2, a_Line3, a_Line4);
+ return Chunk->SetSignLines(a_BlockX, a_BlockY, a_BlockZ, a_Line1, a_Line2, a_Line3, a_Line4);
}