mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
show error messages in the event of an invalid house appearance inv
This commit is contained in:
parent
d254839fa7
commit
f29e72942b
1 changed files with 8 additions and 0 deletions
|
@ -683,6 +683,10 @@ void Sapphire::World::Manager::HousingMgr::updateHouseModels( Sapphire::HousePtr
|
|||
house->setHousePart( static_cast< Common::HousePartSlot >( item.first ), getItemData( item.second->getId() ) );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
g_fw.get< Logger >()->error( "Plot " + std::to_string( house->getLandIdent().landId ) + " has an invalid inventory configuration for outdoor appearance." );
|
||||
}
|
||||
|
||||
auto intContainer = containers.find( static_cast< uint16_t >( InventoryType::HousingInteriorAppearance ) );
|
||||
if( intContainer != containers.end() )
|
||||
|
@ -692,4 +696,8 @@ void Sapphire::World::Manager::HousingMgr::updateHouseModels( Sapphire::HousePtr
|
|||
house->setHouseInteriorPart( static_cast< Common::HousingInteriorSlot >( item.first ), getItemData( item.second->getId() ) );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
g_fw.get< Logger >()->error( "Plot " + std::to_string( house->getLandIdent().landId ) + " has an invalid inventory configuration for indoor appearance." );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue