From 9423a723c38f2b1ed756b0cbc629447768d530dd Mon Sep 17 00:00:00 2001 From: SirLynix Date: Tue, 31 Dec 2024 00:55:00 +0100 Subject: [PATCH] Game: Fix player name not appearing --- src/ClientLib/ClientSessionHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClientLib/ClientSessionHandler.cpp b/src/ClientLib/ClientSessionHandler.cpp index a8ba813..591e864 100644 --- a/src/ClientLib/ClientSessionHandler.cpp +++ b/src/ClientLib/ClientSessionHandler.cpp @@ -704,7 +704,7 @@ namespace tsom visualEntity.emplace(skeleton, std::make_shared(visualEntity, m_playerAnimAssets)); // Floating name - std::shared_ptr textSprite = std::make_shared(); + std::shared_ptr textSprite = std::make_shared(Nz::MaterialInstance::Instantiate(MaterialType::Basic, MaterialInstancePreset::ReverseZ | MaterialInstancePreset::Transparent)); PlayerInfo* playerInfo = FetchPlayerInfo(entityData.controllingPlayerId); if (playerInfo)