1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

fix lambda type and remove testing code

This commit is contained in:
NotAdam 2018-12-20 21:54:03 +11:00
parent 8da5ae47db
commit c54ceea607
2 changed files with 1 additions and 10 deletions

View file

@ -513,8 +513,6 @@ void Sapphire::World::Manager::HousingMgr::sendHousingInventory( Entity::Player&
if( !container )
return;
player.sendDebug( "got inventory for plot: " + targetLand->getHouse()->getHouseName() );
auto invMgr = g_fw.get< Manager::InventoryMgr >();
invMgr->sendInventoryContainer( player, container );
}

View file

@ -117,7 +117,7 @@ void Sapphire::Land::init()
}
// init item containers
auto setupContainer = [ this ]( InventoryType type, uint8_t maxSize )
auto setupContainer = [ this ]( InventoryType type, uint16_t maxSize )
{
m_landInventoryMap[ type ] = make_ItemContainer( type, maxSize, "houseiteminventory", true, true );
};
@ -127,13 +127,6 @@ void Sapphire::Land::init()
setupContainer( InventoryType::HousingOutdoorStoreroom, m_maxPlacedExternalItems );
setupContainer( InventoryType::HousingInteriorAppearance, 9 );
//uint64_t uId, uint32_t catalogId, uint64_t model1, uint64_t model2, bool isHq
auto item = make_Item( 0x1000, 6600, 0, 0, false );
item->setStackSize(1);
m_landInventoryMap[ InventoryType::HousingOutdoorPlacedItems ]->setItem( 0, item );
m_landInventoryMap[ InventoryType::HousingOutdoorStoreroom ]->setItem( 0, item );
}
void Sapphire::Land::loadItemContainerContents()