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
This commit is contained in:
@@ -235,7 +235,7 @@ void cInventory::SetEquippedSlot( int a_SlotNum )
|
||||
|
||||
|
||||
|
||||
cItem & cInventory::GetEquippedItem()
|
||||
cItem & cInventory::GetEquippedItem(void)
|
||||
{
|
||||
cItem* Item = GetFromHotBar( m_EquippedSlot );
|
||||
if( Item )
|
||||
@@ -254,6 +254,15 @@ cItem & cInventory::GetEquippedItem()
|
||||
|
||||
|
||||
|
||||
const cItem & cInventory::GetEquippedItem(void) const
|
||||
{
|
||||
return *m_EquippedItem;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cInventory::SendWholeInventory(cClientHandle * a_Client)
|
||||
{
|
||||
a_Client->SendWholeInventory(*this);
|
||||
|
||||
Reference in New Issue
Block a user