mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-13 12:16:53 +07:00
debug
This commit is contained in:
parent
70b071fa26
commit
b360a39fcf
@ -82,7 +82,11 @@ public class SteamNetImpl implements SteamNetworkingCallback, SteamMatchmakingCa
|
||||
|
||||
@Override
|
||||
public void sendClient(Object object, SendMode mode){
|
||||
if(currentServer == null) return;
|
||||
Log.info("Attempt to send {0} {1}", object, mode);
|
||||
if(currentServer == null){
|
||||
Log.info("Not connected, quitting.");
|
||||
return;
|
||||
}
|
||||
|
||||
try{
|
||||
writeBuffer.limit(writeBuffer.capacity());
|
||||
@ -357,6 +361,7 @@ public class SteamNetImpl implements SteamNetworkingCallback, SteamMatchmakingCa
|
||||
writeBuffer.position(0);
|
||||
serializer.write(writeBuffer, object);
|
||||
writeBuffer.flip();
|
||||
Log.info("Send {0} to {1} mode {2}", object, sid.getAccountID(), mode);
|
||||
|
||||
snet.sendP2PPacket(sid, writeBuffer, mode == SendMode.tcp ? P2PSend.Reliable : P2PSend.UnreliableNoDelay, 0);
|
||||
}catch(Exception e){
|
||||
|
Loading…
Reference in New Issue
Block a user