Some code improvements
git-svn-id: http://mc-server.googlecode.com/svn/trunk@677 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -209,10 +209,16 @@ bool cItemHandler::CanHarvestBlock(BLOCKTYPE a_BlockID)
|
||||
|
||||
BLOCKTYPE cItemHandler::GetBlockType()
|
||||
{
|
||||
return m_ItemID;
|
||||
#ifdef _DEBUG
|
||||
if(m_ItemID > 256)
|
||||
{
|
||||
LOGERROR("Item %d has no valid block!", m_ItemID);
|
||||
}
|
||||
#endif
|
||||
return (BLOCKTYPE) m_ItemID;
|
||||
}
|
||||
|
||||
NIBBLETYPE cItemHandler::GetBlockMeta(char a_ItemMeta)
|
||||
NIBBLETYPE cItemHandler::GetBlockMeta(NIBBLETYPE a_ItemMeta)
|
||||
{
|
||||
return a_ItemMeta; //This keeps most textures. The few other items have to override this
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user