summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-11-15 15:16:52 +0100
committerHowaner <franzi.moos@googlemail.com>2014-11-15 15:16:52 +0100
commit78fb7896313f2074fa814309901e30d4a4f218e2 (patch)
treeefb2cee4c5e3defe04a05cae0e2f673ba21f7b90 /src/World.cpp
parentAPIDump: Fixed example cCompositeChat URL (diff)
downloadcuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar
cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar.gz
cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar.bz2
cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar.lz
cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar.xz
cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar.zst
cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 68855e617..3178d41a6 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -2926,25 +2926,19 @@ bool cWorld::SetSignLines(int a_BlockX, int a_BlockY, int a_BlockZ, const AStrin
AString Line2(a_Line2);
AString Line3(a_Line3);
AString Line4(a_Line4);
+
if (cRoot::Get()->GetPluginManager()->CallHookUpdatingSign(*this, a_BlockX, a_BlockY, a_BlockZ, Line1, Line2, Line3, Line4, a_Player))
{
return false;
}
+
if (m_ChunkMap->SetSignLines(a_BlockX, a_BlockY, a_BlockZ, Line1, Line2, Line3, Line4))
{
cRoot::Get()->GetPluginManager()->CallHookUpdatedSign(*this, a_BlockX, a_BlockY, a_BlockZ, Line1, Line2, Line3, Line4, a_Player);
return true;
}
- return false;
-}
-
-
-
-
-bool cWorld::UpdateSign(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, cPlayer * a_Player)
-{
- return SetSignLines(a_BlockX, a_BlockY, a_BlockZ, a_Line1, a_Line2, a_Line3, a_Line4, a_Player);
+ return false;
}