- Crafting fixed in 1.0.0
- Server compatible with the weapons and equip again. (Some Packets were incompatible) - fixed bucket bugs (not all) - Fixed clients getting crashed by wrong Pickups - fixed nearly all mob drops. (Check wheather they are burning is missing Big Grin) - maybe some other things I can´t recall atm Big Grin git-svn-id: http://mc-server.googlecode.com/svn/trunk@94 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "cPacket_WindowClick.h"
|
||||
|
||||
#include "cPacket_WholeInventory.h"
|
||||
#include "cPacket_ItemData.h"
|
||||
|
||||
bool cPacket_WindowClick::Parse(cSocket & a_Socket)
|
||||
{
|
||||
@@ -17,20 +18,15 @@ bool cPacket_WindowClick::Parse(cSocket & a_Socket)
|
||||
// LOG("Right/Le: %i", m_RightMouse );
|
||||
// LOG("NumClick: %i", m_NumClicks );
|
||||
|
||||
if( !ReadShort(m_ItemID) ) return false;
|
||||
// LOG("ItemID: %i", m_ItemID );
|
||||
if( m_ItemID > -1 )
|
||||
{
|
||||
if( !ReadByte(m_ItemCount) ) return false;
|
||||
if( !ReadShort(m_ItemUses) ) return false;
|
||||
// LOG("Count : %i", m_ItemCount );
|
||||
// LOG("Uses : %i", m_ItemUses );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_ItemCount = 0;
|
||||
m_ItemUses = 0;
|
||||
}
|
||||
cPacket_ItemData Item;
|
||||
|
||||
Item.Parse(m_Socket);
|
||||
|
||||
m_ItemID = Item.m_ItemID;
|
||||
m_ItemCount = Item.m_ItemCount;
|
||||
m_ItemUses = Item.m_ItemUses;
|
||||
|
||||
m_EnchantNums = Item.m_EnchantNums;
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user