server closing for SP is signalled too late.
This commit is contained in:
1 parent
63901ebb0c
commit
15f7d52b4c
2 files changed
+13
-2
No files matched your search
@@ -37,13 +37,17 @@ public class CarpetClient
|
||||
|
||||
public static void disconnect()
|
||||
{
|
||||
if (isServerCarpet)
|
||||
if (isServerCarpet) // multiplayer connection
|
||||
{
|
||||
isServerCarpet = false;
|
||||
clientPlayer = null;
|
||||
CarpetServer.onServerClosed(null);
|
||||
CarpetServer.onServerDoneClosing(null);
|
||||
}
|
||||
else // singleplayer disconnect
|
||||
{
|
||||
CarpetServer.clientPreClosing();
|
||||
}
|
||||
}
|
||||
|
||||
public static void setCarpet()
|
||||
|
||||
Reference in new issue
Block a user