From 8b5ef7478c6b64685e78159ad4338aa27c103809 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Mon, 14 Dec 2020 15:47:17 -0500 Subject: [PATCH] Fix PS4 behavior with NetworkStackLatencyTranslator (#1678) --- .../BedrockNetworkStackLatencyTranslator.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/bedrock/BedrockNetworkStackLatencyTranslator.java b/connector/src/main/java/org/geysermc/connector/network/translators/bedrock/BedrockNetworkStackLatencyTranslator.java index 13f2ea3c6..2e1a87ca0 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/bedrock/BedrockNetworkStackLatencyTranslator.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/bedrock/BedrockNetworkStackLatencyTranslator.java @@ -30,6 +30,7 @@ import com.nukkitx.protocol.bedrock.packet.NetworkStackLatencyPacket; import org.geysermc.connector.network.session.GeyserSession; import org.geysermc.connector.network.translators.PacketTranslator; import org.geysermc.connector.network.translators.Translator; +import org.geysermc.floodgate.util.DeviceOS; /** * Used to send the keep alive packet back to the server @@ -39,6 +40,16 @@ public class BedrockNetworkStackLatencyTranslator extends PacketTranslator