forked from GeyserMC/Geyser
Add ignore for ServerKeepAlivePacket (#664)
This packet is already handled by MCProtocolLib for us. Co-authored-by: Camotoy <20743703+DoctorMacc@users.noreply.github.com>
This commit is contained in:
parent
1a92f6974c
commit
3f76ae1d48
1 changed files with 8 additions and 7 deletions
|
@ -25,18 +25,18 @@
|
|||
|
||||
package org.geysermc.connector.network.translators;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerKeepAlivePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerUpdateLightPacket;
|
||||
import com.github.steveice10.packetlib.packet.Packet;
|
||||
import com.nukkitx.protocol.bedrock.BedrockPacket;
|
||||
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
|
||||
import org.geysermc.connector.GeyserConnector;
|
||||
import org.geysermc.connector.network.session.GeyserSession;
|
||||
|
||||
import com.github.steveice10.packetlib.packet.Packet;
|
||||
import com.nukkitx.protocol.bedrock.BedrockPacket;
|
||||
import org.reflections.Reflections;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class PacketTranslatorRegistry<T> {
|
||||
private final Map<Class<? extends T>, PacketTranslator<? extends T>> translators = new HashMap<>();
|
||||
|
||||
|
@ -72,7 +72,8 @@ public class PacketTranslatorRegistry<T> {
|
|||
}
|
||||
}
|
||||
|
||||
IGNORED_PACKETS.add(ServerUpdateLightPacket.class);
|
||||
IGNORED_PACKETS.add(ServerKeepAlivePacket.class); // Handled by MCProtocolLib
|
||||
IGNORED_PACKETS.add(ServerUpdateLightPacket.class); // Light is handled on Bedrock for us
|
||||
}
|
||||
|
||||
private PacketTranslatorRegistry() {
|
||||
|
|
Loading…
Reference in a new issue