From e6a4b6b8cb973a1571233415fa9f473d6790e75d Mon Sep 17 00:00:00 2001 From: "Wesley F. Young" Date: Thu, 1 Aug 2024 20:12:54 +0800 Subject: [PATCH] an unsafe patch Refer to https://github.com/GeyserMC/Floodgate-Fabric/issues/83#issuecomment-1734346417 --- src/main/java/one/oktw/FabricProxyLite.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/one/oktw/FabricProxyLite.java b/src/main/java/one/oktw/FabricProxyLite.java index c08dd4e..edb4f35 100644 --- a/src/main/java/one/oktw/FabricProxyLite.java +++ b/src/main/java/one/oktw/FabricProxyLite.java @@ -26,9 +26,7 @@ public class FabricProxyLite implements DedicatedServerModInitializer, IMixinCon public void onInitializeServer() { // Packet receiver ServerLoginNetworking.registerGlobalReceiver(PLAYER_INFO_CHANNEL, new PacketHandler(config)::handleVelocityPacket); - if (!config.getHackEarlySend()) { - ServerLoginConnectionEvents.QUERY_START.register((handler, server, sender, synchronizer) -> sender.sendPacket(PLAYER_INFO_CHANNEL, PLAYER_INFO_PACKET)); - } + ServerLoginConnectionEvents.QUERY_START.register((handler, server, sender, synchronizer) -> sender.sendPacket(PLAYER_INFO_CHANNEL, PLAYER_INFO_PACKET)); } // Only load hack mixin if enabled