diff options
author | Mattes D <github@xoft.cz> | 2014-11-18 08:52:48 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-18 08:52:48 +0100 |
commit | 9ece37e8f169f56ae670a02b9753cf12823d2df7 (patch) | |
tree | 00818f6c27413756b63be957faec29f4334a3ba4 /src/World.cpp | |
parent | Fixed a wrong assert in cClientHandle::SetViewDistance(). (diff) | |
parent | Use cLuaState's stack trace. (diff) | |
download | cuberite-9ece37e8f169f56ae670a02b9753cf12823d2df7.tar cuberite-9ece37e8f169f56ae670a02b9753cf12823d2df7.tar.gz cuberite-9ece37e8f169f56ae670a02b9753cf12823d2df7.tar.bz2 cuberite-9ece37e8f169f56ae670a02b9753cf12823d2df7.tar.lz cuberite-9ece37e8f169f56ae670a02b9753cf12823d2df7.tar.xz cuberite-9ece37e8f169f56ae670a02b9753cf12823d2df7.tar.zst cuberite-9ece37e8f169f56ae670a02b9753cf12823d2df7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/World.cpp b/src/World.cpp index 288cf0154..df1a97460 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -2929,25 +2929,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; } |