Some websocket code

This commit is contained in:
catfoolyou
2025-02-04 12:41:18 -05:00
parent d90a17eb7a
commit ac8bb6cc9e
15 changed files with 61 additions and 1104 deletions

View File

@@ -33,7 +33,6 @@ import net.minecraft.src.ISaveHandler;
import net.minecraft.src.IUpdatePlayerListBox;
import net.minecraft.src.MathHelper;
import net.minecraft.src.MinecraftException;
import net.minecraft.src.NetworkListenThread;
import net.minecraft.src.Packet;
import net.minecraft.src.Packet4UpdateTime;
import net.minecraft.src.PlayerUsageSnooper;
@@ -383,11 +382,6 @@ public abstract class MinecraftServer implements ICommandSender, Runnable, IPlay
{
this.getLogAgent().logInfo("Stopping server");
if (this.getNetworkThread() != null)
{
this.getNetworkThread().stopListening();
}
if (this.serverConfigManager != null)
{
this.getLogAgent().logInfo("Saving players");
@@ -663,7 +657,6 @@ public abstract class MinecraftServer implements ICommandSender, Runnable, IPlay
}
this.theProfiler.endStartSection("connection");
this.getNetworkThread().networkTick();
this.theProfiler.endStartSection("players");
this.serverConfigManager.sendPlayerInfoToAllPlayers();
this.theProfiler.endStartSection("tickables");
@@ -1253,7 +1246,6 @@ public abstract class MinecraftServer implements ICommandSender, Runnable, IPlay
}
}
public abstract NetworkListenThread getNetworkThread();
public boolean serverIsInRunLoop()
{