Make client net handling run on main thread
This commit is contained in:
1 parent
a50a0d7328
commit
059fda49a4
4 files changed
+34
-58
No files matched your search
@@ -12,7 +12,6 @@ import net.minecraft.resources.ResourceLocation;
|
||||
|
||||
public class CarpetClient
|
||||
{
|
||||
public static final Object sync = new Object();
|
||||
public static final int HI = 69;
|
||||
public static final int HELLO = 420;
|
||||
public static final int DATA = 1;
|
||||
@@ -25,14 +24,7 @@ public class CarpetClient
|
||||
|
||||
public static void gameJoined(LocalPlayer player)
|
||||
{
|
||||
synchronized (sync)
|
||||
{
|
||||
clientPlayer = player;
|
||||
// client didn't say hi back yet
|
||||
if (isServerCarpet)
|
||||
ClientNetworkHandler.respondHello();
|
||||
|
||||
}
|
||||
clientPlayer = player;
|
||||
}
|
||||
|
||||
public static void disconnect()
|
||||
|
||||
Reference in new issue
Block a user