mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Remove obsolete createPickedUpItem()
This commit is contained in:
parent
e8b0722137
commit
a17efe6e8f
2 changed files with 0 additions and 21 deletions
|
@ -913,14 +913,6 @@ std::string FireflySAO::getStaticData()
|
|||
return os.str();
|
||||
}
|
||||
|
||||
InventoryItem* FireflySAO::createPickedUpItem()
|
||||
{
|
||||
std::istringstream is("CraftItem firefly 1", std::ios_base::binary);
|
||||
IGameDef *gamedef = m_env->getGameDef();
|
||||
InventoryItem *item = InventoryItem::deSerialize(is, gamedef);
|
||||
return item;
|
||||
}
|
||||
|
||||
/*
|
||||
MobV2SAO
|
||||
*/
|
||||
|
@ -1664,15 +1656,6 @@ std::string LuaEntitySAO::getStaticData()
|
|||
return os.str();
|
||||
}
|
||||
|
||||
InventoryItem* LuaEntitySAO::createPickedUpItem()
|
||||
{
|
||||
// TODO: Ask item from scriptapi
|
||||
std::istringstream is("CraftItem testobject1 1", std::ios_base::binary);
|
||||
IGameDef *gamedef = m_env->getGameDef();
|
||||
InventoryItem *item = InventoryItem::deSerialize(is, gamedef);
|
||||
return item;
|
||||
}
|
||||
|
||||
void LuaEntitySAO::punch(ServerActiveObject *puncher, float time_from_last_punch)
|
||||
{
|
||||
if(!m_registered)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue