summaryrefslogtreecommitdiffstats
path: root/source/cEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 22:34:47 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 22:34:47 +0100
commite7731242c1315df230bffbf0593e1a608aa791a3 (patch)
tree803b09ea2e4485d979f2ed13b231e62237191861 /source/cEntity.cpp
parentFixed mob spawn packet for 1.2 client, now client doesn't bail out when mobs are turned on (diff)
downloadcuberite-e7731242c1315df230bffbf0593e1a608aa791a3.tar
cuberite-e7731242c1315df230bffbf0593e1a608aa791a3.tar.gz
cuberite-e7731242c1315df230bffbf0593e1a608aa791a3.tar.bz2
cuberite-e7731242c1315df230bffbf0593e1a608aa791a3.tar.lz
cuberite-e7731242c1315df230bffbf0593e1a608aa791a3.tar.xz
cuberite-e7731242c1315df230bffbf0593e1a608aa791a3.tar.zst
cuberite-e7731242c1315df230bffbf0593e1a608aa791a3.zip
Diffstat (limited to '')
-rw-r--r--source/cEntity.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cEntity.cpp b/source/cEntity.cpp
index ba1ca836a..f9e9d4e82 100644
--- a/source/cEntity.cpp
+++ b/source/cEntity.cpp
@@ -120,7 +120,7 @@ void cEntity::MoveToCorrectChunk(bool a_bIgnoreOldChunk)
{
m_Destroy = new cPacket_DestroyEntity(m_Entity);
}
- a_Client->Send(m_Destroy);
+ a_Client->Send(*m_Destroy);
}
virtual void Added(cClientHandle * a_Client) override
@@ -131,7 +131,7 @@ void cEntity::MoveToCorrectChunk(bool a_bIgnoreOldChunk)
}
if (m_Spawn != NULL)
{
- a_Client->Send(m_Spawn);
+ a_Client->Send(*m_Spawn);
}
}
@@ -218,7 +218,7 @@ void cEntity::SpawnOn(cClientHandle * a_Client)
}
else
{
- a_Client->Send(SpawnPacket.get());
+ a_Client->Send(*(SpawnPacket.get()));
}
}