Revert Some Multithreading for Synchronization

This commit is contained in:
Kam committed 2023-05-16 17:17:11 -04:00
1 parent 892d11b89b
commit 204e7a9c15
6 files changed
+20 -31

No files matched your search

+8 -10
View File
@@ -27,16 +27,14 @@ public class Client {
private static HashMap<String, ImageData> imageDataCache = new HashMap<>();
public static void sendData(final EnumPacketServer enu, final Object... obs) {
CustomNPCsScheduler.runTack(() -> {
ByteBuf buffer = Unpooled.buffer();
try {
if(!Server.fillBuffer(buffer, enu, obs))
return;
CustomNpcs.Channel.sendToServer(new FMLProxyPacket(buffer, "CustomNPCs"));
} catch (IOException e) {
e.printStackTrace();
}
});
ByteBuf buffer = Unpooled.buffer();
try {
if(!Server.fillBuffer(buffer, enu, obs))
return;
CustomNpcs.Channel.sendToServer(new FMLProxyPacket(buffer, "CustomNPCs"));
} catch (IOException e) {
e.printStackTrace();
}
}
public static ImageData getImageData(String directory) {