ProtocolLib

3M Downloads

Why is PacketType.Play.Server.SPAWN_ENTITY_LIVING invalid on 1.17.1?

LaserSlime opened this issue ยท 2 comments

commented

Make sure you're doing the following

  • You're using the latest build for your server version
  • This isn't an issue caused by another plugin
  • You've checked for duplicate issues
  • You didn't use /reload

Describe the question
Why does Protocollib detect the spawn entity living packet as invalid in 1.17.1 despite it only being removed in 1.19?

API method(s) used
I just called the PacketAdapter constructor and passed PacketType.Play.Server.SPAWN_ENTITY_LIVING.

Expected behavior
This should not give me a warning on a 1.17.1 server. It should only warn me on a 1.19+ server.

Code

	public EntityMetadataAdapter(Plugin plugin) {
		super(plugin, PacketType.Play.Server.ENTITY_METADATA, PacketType.Play.Server.SPAWN_ENTITY_LIVING, PacketType.Play.Server.NAMED_ENTITY_SPAWN);
	}

Additional context
Add any other context about the problem here.

commented

Can you please attach the warning you are seeing & the version dump?

commented

[17:57:17 WARN]: [ProtocolLib] [PacketFilterManager] Plugin AntiHealthIndicator tried to register listener for unknown packet SPAWN_ENTITY_LIVING[PLAY, SERVER, 246, classNames: [net.minecraft.network.protocol.game.PacketPlayOutSpawnEntityLiving, net.minecraft.network.protocol.game.ClientboundSpawnEntityLivingPacket, net.minecraft.network.play.server.SPacketSpawnMob] (unregistered)] [direction: to SERVER]

[00:00:28 INFO]: ProtocolLib v5.0.0-SNAPSHOT-b560
[00:00:28 INFO]: Authors: dmulloy2 and Comphenix
[00:00:28 INFO]: Issues: https://github.com/dmulloy2/ProtocolLib/issues