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

Merge pull request #421 from XeAri/housing

housing handler fix
This commit is contained in:
Mordred 2018-11-09 11:13:10 +01:00 committed by GitHub
commit 8fcee959c6

View file

@ -1017,7 +1017,10 @@ void Core::DebugCommandHandler::housing( char* data, Entity::Player& player, std
{
auto pHousing = std::dynamic_pointer_cast< HousingZone >( pZone );
if( pHousing )
{
player.setLandPermissions( permissionSet, 8, pHousing->getLandSetId(), pHousing->getWardNum(), pHousing->getTerritoryTypeId() );
player.sendLandPermissions();
}
else
player.sendDebug( "You aren't in a housing Zone." );
}