summaryrefslogtreecommitdiffstats
path: root/source/cSignEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-24 09:58:26 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-24 09:58:26 +0200
commite92b9e7ecbdf2918aab59d4eeb7bb5966430b264 (patch)
tree1a998d44e5faab91c54ea8517dd9fa02b3732ef7 /source/cSignEntity.cpp
parentAdded plugin name to deprecation messages (diff)
downloadcuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar
cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar.gz
cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar.bz2
cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar.lz
cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar.xz
cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar.zst
cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.zip
Diffstat (limited to '')
-rw-r--r--source/cSignEntity.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/source/cSignEntity.cpp b/source/cSignEntity.cpp
index eefcf4ccd..6caff7add 100644
--- a/source/cSignEntity.cpp
+++ b/source/cSignEntity.cpp
@@ -8,8 +8,6 @@
#include "cWorld.h"
#include "cRoot.h"
-#include "packets/cPacket_UpdateSign.h"
-
#include <json/json.h>
@@ -80,17 +78,9 @@ AString cSignEntity::GetLine( int a_Index ) const
-cPacket * cSignEntity::GetPacket(void)
+void cSignEntity::SendTo(cClientHandle & a_Client)
{
- cPacket_UpdateSign * Sign = new cPacket_UpdateSign;
- Sign->m_BlockX = m_PosX;
- Sign->m_BlockY = (short)m_PosY;
- Sign->m_BlockZ = m_PosZ;
- Sign->m_Line1 = m_Line[0];
- Sign->m_Line2 = m_Line[1];
- Sign->m_Line3 = m_Line[2];
- Sign->m_Line4 = m_Line[3];
- return Sign;
+ a_Client.SendUpdateSign(m_PosX, m_PosY, m_PosZ, m_Line[0], m_Line[1], m_Line[2], m_Line[3]);
}