retrooper / packetevents

PacketEvents is a fast and efficient multi-platform packet processing library for Minecraft. Our packet wrappers are easy to use with multi-version support.
GNU General Public License v3.0
480 stars 138 forks source link

Entity is "null" #849

Open og-sketch12 opened 1 month ago

og-sketch12 commented 1 month ago

Describe the bug It kicks everyone and makes the server not joinable as soon as you spawn an entity let's say: zombie.

Software brand Pufferfish 1.19.4

Plugins ViaVersion, ProtocolLib, Matrix, Libs Disguises, MythicMobs, and alot more.

How To Reproduce Steps to reproduce the behavior: Example:

  1. I'm on 1.20.1
  2. Spawn zombie with command or egg
  3. And boom, you're kicked and can't join until the zombie dies

It's fine with the old version: 2.2.1, entity is "null"

booky10 commented 1 month ago

we would need an error for anything to look into here, if this is even a packetevents issue also, which packetevents version are you using here?

Bram1903 commented 1 month ago

Probably related to: https://github.com/retrooper/packetevents/issues/803 and https://github.com/retrooper/packetevents/issues/850

og-sketch12 commented 1 month ago

image image I'm using the latest 2.3.0 version, though 2.2.1 works fine (there isnt this error) but some plugins that depend on packetevents ain't working or loading up which loads up with 2.3.0

og-sketch12 commented 1 month ago

With the latest (as I saw in other related issues) 2.3.1-Shapshot, It says:

[packetevents] Disconnected Shxrpness1 due to invalid packet!

10:02:39 WARN: at io.netty.channel.AbstractChannel.close(ChannelPromise)(Unknown Source)

10:02:39 WARN: at io.netty.channel.AbstractChannel.close(ChannelPromise)(Unknown Source) [10:02:39 INFO]: [packetevents] Disconnected Shxrpness1 due to invalid packet! [10:02:39 INFO]: [packetevents] Disconnected Shxrpness1 due to invalid packet!

og-sketch12 commented 3 weeks ago

With the 2.2.1 version (which works but.. spamming my console with an error:

[packetevents] Unable to grab ViaVersion client version for player!

Bram1903 commented 3 weeks ago

With the 2.2.1 version (which works but.. spamming my console with an error:

[packetevents] Unable to grab ViaVersion client version for player!

Hello,

That's another issue, which has been solved in a previous commit. You can use the 2.4.0-SNAPSHOT for now which should solve your ViaVersion issue: https://ci.codemc.io/job/retrooper/job/packetevents/

Kind regards, Bram

og-sketch12 commented 3 weeks ago

Thanks!