Fixed a few warnings
git-svn-id: http://mc-server.googlecode.com/svn/trunk@799 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -261,10 +261,10 @@ void cBlockHandler::DropBlock(cWorld *a_World, int a_X, int a_Y, int a_Z)
|
||||
cItems Drops;
|
||||
NIBBLETYPE Meta = a_World->GetBlockMeta(a_X, a_Y, a_Z);
|
||||
char DropCount = GetDropCount();
|
||||
int DropItem = GetDropID();
|
||||
if(DropCount > 0 && DropItem != E_ITEM_EMPTY)
|
||||
short DropItem = (short)GetDropID();
|
||||
if (DropCount > 0 && (DropItem != E_ITEM_EMPTY))
|
||||
{
|
||||
Drops.push_back(cItem((ENUM_ITEM_ID)DropItem, DropCount, GetDropMeta(Meta)));
|
||||
Drops.push_back(cItem(DropItem, DropCount, GetDropMeta(Meta)));
|
||||
a_World->SpawnItemPickups(Drops, a_X, a_Y, a_Z);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user