Server Sync

This commit is contained in:
brausjonas committed 2023-03-28 19:28:51 +02:00
1 parent 07f499dc91
commit 74100f4528
15 files changed
+55 -22

No files matched your search

+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();