PluginBugs / Issues-CosmeticsCore

Repository used to keep track of issues of my plugin CosmeticsCore
https://lonedev.gitbook.io/cosmeticscore/
0 stars 0 forks source link

Can't exit from wardrobe on server 1.20.2 and latest devbuild of ProtocolLib #198

Closed EpicPlayerA10 closed 9 months ago

EpicPlayerA10 commented 11 months ago

Terms

Discord tag (optional)

epicplayera10

What happened?

I set up a Paper server on 1.20.2 with CosmeticsCore. When I entered to the wardrobe and I tried to exit it using shift key, then I can't. It does nothing.

I discovered that when I downgrade the ProtocolLib to dev build 673 then the problem disappears. The problem appear on the latest dev build of ProtocolLib.

Steps to reproduce the issue

  1. Setup a Paper server on 1.20.2
  2. Install CosmeticsCore, latest devbuild of ProtocolLib and LoneLibs
  3. Enter to the wardrobe
  4. Try to exit it using shift key.
  5. See that you can't

Server version

This server is running Paper version git-Paper-318 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT) (Git: 9271ee7)

CosmeticsCore Version

CosmeticsCore version 1.2.3b

ProtocolLib Version

ProtocolLib version 5.2.0-SNAPSHOT-679

LoneLibs Version

LoneLibs version 1.0.42

FULL server log

No response

Error (optional)

No response

CosmeticsCore config.yml

No response

Problematic items yml configuration file (optional)

No response

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

LoneDev6 commented 10 months ago

Are you 100% sure it's caused by the latest version of ProtocoLib or was it just a coincidence?

EpicPlayerA10 commented 10 months ago

I think this bug occurs because of the fact that the latest dev build of ProtocolLib is only for 1.20.4 and not for 1.20.2. Downgrading ProtocolLib to version that it supports 1.20.2 works fine. I think I can close this issue now.

LoneDev6 commented 9 months ago

Thanks, will be checked, I need to find what changed between these ProtocolLib builds.

Kosoca commented 9 months ago

I may have found the solution (for my part it works) You must ensure that the entrance to the wardrobe is not on the same path as the exit, otherwise the player will be directly teleported back

LoneDev6 commented 9 months ago

Seems a bug of ProtocolLib 5.2.0-SNAPSHOT-679 and 1.20.2. For some reason PacketType.Play.Client.STEER_VEHICLE.getPacketClass() returns ServerboundPongPacket instead of PacketPlayInSteerVehicle. Opened a new report here: https://github.com/dmulloy2/ProtocolLib/issues/2818