Server Sync

This commit is contained in:
brausjonas
2023-03-28 19:28:51 +02:00
parent 07f499dc91
commit 74100f4528
15 changed files with 55 additions and 22 deletions
+14
View File
@@ -270,6 +270,20 @@ public class Room
/**
* //the timeout check action
*/
case 10:
for (int i = 0; i < players.length; i++)
{
//Sync to OTHER players
if (i != player)
{
//!!data processing!!
//------------------------------action---player-------item index--------free space--------
players[i].output.write(new byte[]{10, (byte)player, readData[1], 0, 0, 0, 0, 0, 0, 0});
}
}
break;
case 126:
//!!server action!!
players[player].lastTimeSendTimeOutCheck = System.currentTimeMillis();