Fixed #11649
This commit is contained in:
@@ -58,6 +58,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
|||||||
readBuffer.limit(len);
|
readBuffer.limit(len);
|
||||||
readCopyBuffer.position(0);
|
readCopyBuffer.position(0);
|
||||||
readCopyBuffer.put(readBuffer);
|
readCopyBuffer.put(readBuffer);
|
||||||
|
readCopyBuffer.limit(len);
|
||||||
readCopyBuffer.position(0);
|
readCopyBuffer.position(0);
|
||||||
int fromID = from.getAccountID();
|
int fromID = from.getAccountID();
|
||||||
Object output = serializer.read(readCopyBuffer);
|
Object output = serializer.read(readCopyBuffer);
|
||||||
@@ -201,7 +202,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
|||||||
smat.setLobbyMemberLimit(currentLobby, Core.settings.getInt("playerlimit"));
|
smat.setLobbyMemberLimit(currentLobby, Core.settings.getInt("playerlimit"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateWave(){
|
void updateWave(){
|
||||||
if(currentLobby != null && net.server()){
|
if(currentLobby != null && net.server()){
|
||||||
smat.setLobbyData(currentLobby, "mapname", state.map.name());
|
smat.setLobbyData(currentLobby, "mapname", state.map.name());
|
||||||
|
|||||||
Reference in New Issue
Block a user