1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-06 18:57:45 +00:00

Better detection of housing subdivisions

This commit is contained in:
Moydow 2023-03-04 00:07:01 +00:00
parent 569fe373d1
commit fbe38df8fa

View file

@ -279,7 +279,7 @@ void Sapphire::HousingZone::sendLandUpdate( uint8_t landId )
bool Sapphire::HousingZone::isPlayerSubInstance( Entity::Player& player )
{
return player.getPos().x < -15000.0f; //ToDo: get correct pos
return player.getPos().x < -400.0f && player.getPos().z < -400.0f; //ToDo: get correct pos
}
void Sapphire::HousingZone::onUpdate( uint64_t tickCount )