fix Shapeshift name?

This commit is contained in:
D1GQ committed 2024-09-12 22:04:51 -05:00
1 parent a8c3ad8d0e
commit 1123fce7e4
1 file changed
+6 -3
+6 -3
View File
@@ -227,10 +227,13 @@ class PlayerControlPatch
}
else
{
var targetData = Utils.PlayerDataFromPlayerId(player.shapeshiftTargetPlayerId);
if (targetData != null)
if (!player.shapeshifting)
{
player.RawSetName(targetData.PlayerName);
var targetData = Utils.PlayerDataFromPlayerId(player.shapeshiftTargetPlayerId);
if (targetData != null)
{
player.RawSetName(targetData.PlayerName);
}
}
}