Moved all packet-serializing code into cProtocol125; half the packet classes aren't needed anymore.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@800 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -769,16 +769,16 @@ AString cPlayer::GetColor(void) const
|
||||
|
||||
void cPlayer::TossItem(
|
||||
bool a_bDraggingItem,
|
||||
int a_Amount /* = 1 */,
|
||||
int a_CreateType /* = 0 */,
|
||||
int a_CreateHealth /* = 0 */
|
||||
char a_Amount /* = 1 */,
|
||||
short a_CreateType /* = 0 */,
|
||||
short a_CreateHealth /* = 0 */
|
||||
)
|
||||
{
|
||||
cItems Drops;
|
||||
if (a_CreateType)
|
||||
{
|
||||
// Just create item without touching the inventory (used in creative mode)
|
||||
Drops.push_back(cItem((ENUM_ITEM_ID)a_CreateType, (char)a_Amount, a_CreateHealth));
|
||||
Drops.push_back(cItem(a_CreateType, a_Amount, a_CreateHealth));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user