summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-05 18:36:58 +0100
committermadmaxoft <github@xoft.cz>2013-11-05 18:37:57 +0100
commit88472b7ce68822c4487142d43308bd2fe9874e54 (patch)
tree94faa3c9d45497b174b6d5f412df9c284a856651 /source/ClientHandle.cpp
parentMerge pull request #307 from mc-server/MobImprovements (diff)
downloadcuberite-88472b7ce68822c4487142d43308bd2fe9874e54.tar
cuberite-88472b7ce68822c4487142d43308bd2fe9874e54.tar.gz
cuberite-88472b7ce68822c4487142d43308bd2fe9874e54.tar.bz2
cuberite-88472b7ce68822c4487142d43308bd2fe9874e54.tar.lz
cuberite-88472b7ce68822c4487142d43308bd2fe9874e54.tar.xz
cuberite-88472b7ce68822c4487142d43308bd2fe9874e54.tar.zst
cuberite-88472b7ce68822c4487142d43308bd2fe9874e54.zip
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r--source/ClientHandle.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index 6860a29ca..3fb2b7e4c 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -255,8 +255,8 @@ void cClientHandle::Authenticate(void)
// Send time
m_Protocol->SendTimeUpdate(World->GetWorldAge(), World->GetTimeOfDay());
- // Send inventory
- m_Player->GetInventory().SendWholeInventory(*this);
+ // Send contents of the inventory window
+ m_Protocol->SendWholeInventory(*m_Player->GetWindow());
// Send health
m_Player->SendHealth();
@@ -2004,15 +2004,6 @@ void cClientHandle::SendWeather(eWeather a_Weather)
-void cClientHandle::SendWholeInventory(const cInventory & a_Inventory)
-{
- m_Protocol->SendWholeInventory(a_Inventory);
-}
-
-
-
-
-
void cClientHandle::SendWholeInventory(const cWindow & a_Window)
{
m_Protocol->SendWholeInventory(a_Window);