Revert "show other names"

This reverts commit ee55664811.
This commit is contained in:
brausjonas
2022-05-18 00:34:52 +02:00
parent 6255fcbd9b
commit db5d6eb781
6 changed files with 1 additions and 232 deletions
-15
View File
@@ -48,7 +48,6 @@ public class Server
//[0] = 8: player rotation update
//[0] = 9: Save the World
//[0] = 10: Player died
//[0] = 11: name request
private void Receive()
{
@@ -257,20 +256,6 @@ public class Server
{
Console.WriteLine(playerNames[GetPlayerID(endPoint)] + " died! \n");
}
//name request
if(data[0] == 11)
{
int id = data[1];
List<byte> send = new List<byte>();
send.Add(11);
byte[] nameASCII = Encoding.ASCII.GetBytes(playerNames[id]);
foreach (byte b in nameASCII)
{
send.Add(b);
}
Send(send.ToArray(), endPoint);
}
}
catch (Exception e)
{
+1 -1
View File
@@ -166,5 +166,5 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 5457f26f725053d46bffb9885acfd7d8, type: 3}
m_Name:
m_EditorClassIdentifier:
worldSize: 10
worldSize: 60
transferDelay: 5