mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-30 20:22:04 +00:00 
			
		
		
		
	fix: proxy items not equipping on login (#1892)
tested that items now equip on login
This commit is contained in:
		| @@ -1126,6 +1126,13 @@ void HandlePacket(Packet* packet) { | ||||
| 				// Update the characters xml to ensure the update above is not only saved, but so the client picks up on the changes. | ||||
| 				c->SaveXMLToDatabase(); | ||||
|  | ||||
| 				// Fix the destroyable component | ||||
| 				auto* destroyableComponent = player->GetComponent<DestroyableComponent>(); | ||||
|  | ||||
| 				if (destroyableComponent != nullptr) { | ||||
| 					destroyableComponent->FixStats(); | ||||
| 				} | ||||
|  | ||||
| 				WorldPackets::SendCreateCharacter(packet->systemAddress, characterComponent->GetReputation(), player->GetObjectID(), c->GetXMLData(), username, c->GetGMLevel(), c->GetPropertyCloneID()); | ||||
| 				WorldPackets::SendServerState(packet->systemAddress); | ||||
|  | ||||
| @@ -1143,13 +1150,6 @@ void HandlePacket(Packet* packet) { | ||||
|  | ||||
| 				player->GetCharacter()->SetTargetScene(""); | ||||
|  | ||||
| 				// Fix the destroyable component | ||||
| 				auto* destroyableComponent = player->GetComponent<DestroyableComponent>(); | ||||
|  | ||||
| 				if (destroyableComponent != nullptr) { | ||||
| 					destroyableComponent->FixStats(); | ||||
| 				} | ||||
|  | ||||
| 				//Tell the player to generate BBB models, if any: | ||||
| 				if (g_CloneID != 0) { | ||||
| 					const auto& worldId = Game::zoneManager->GetZone()->GetZoneID(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Markowitz
					David Markowitz