From e92b9e7ecbdf2918aab59d4eeb7bb5966430b264 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 24 Aug 2012 07:58:26 +0000 Subject: Monster classes don't use cPackets. Chat messages are sent / broadcast without cPackets. BlockEntities don't use cPackets. git-svn-id: http://mc-server.googlecode.com/svn/trunk@783 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChestEntity.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/cChestEntity.cpp') diff --git a/source/cChestEntity.cpp b/source/cChestEntity.cpp index 92a039dd7..a798eff47 100644 --- a/source/cChestEntity.cpp +++ b/source/cChestEntity.cpp @@ -156,11 +156,12 @@ void cChestEntity::SaveToJson( Json::Value& a_Value ) -void cChestEntity::SendTo( cClientHandle* a_Client, cServer* a_Server ) +void cChestEntity::SendTo(cClientHandle & a_Client) { + // The chest entity doesn't need anything sent to the client when it's created / gets in the viewdistance + // All the actual handling is in the cWindow UI code that gets called when the chest is rclked + UNUSED(a_Client); - UNUSED(a_Server); - return; } -- cgit v1.2.3