Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Human teleport bug #5510

Open
Laith98Dev opened this issue Jan 13, 2023 · 3 comments
Open

Human teleport bug #5510

Laith98Dev opened this issue Jan 13, 2023 · 3 comments
Labels
Category: Client Related to Mojang client (usually client-caused bugs) Category: Network Related to the internal network architecture Status: Unconfirmed Bug has not yet been reproduced by a maintainer

Comments

@Laith98Dev
Copy link

Issue description

  • Expected result: teleport the entity without problems
  • Actual result: entity telepoted but his skin become a steve

Steps to reproduce the issue

  1. create entity exetnds Human
  2. spawn it
  3. use teleport() function

OS and versions

  • PocketMine-MP: 4.12.8
  • PHP: 8.0.25
  • Using JIT: no
  • Server OS: Linux

Plugins

DevTools v1.15.0, MultiWorld v1.7.0-beta3, TestTeleportBug v1.0.0

Crashdump, backtrace or other files

No crashdumps

i was testing it in my test server
ip: test.askills.xyz
port: 19135
you can join and test it by using this command
/test spawn
/test tpme
/test despawn
or u can use the plugin in your server

and my test plugin is
TestTeleportBug.zip

Video of the problem:
https://cdn.discordapp.com/attachments/373214753147060235/1063228775963303936/Untitled_48_1080p.mp4

@SleepSpace9
Copy link
Contributor

There seems to be a timing issue, because it mostly works when you spawn the entity delayed after teleportation.

@Laith98Dev
Copy link
Author

Laith98Dev commented Jan 13, 2023

After some tests i have fixed it by override teleport function and despawn the entity then teleport it and re spawn it after 2 ticks

test plugin with the fix:
TestTeleportBug.zip

@dktapps
Copy link
Member

dktapps commented Jan 14, 2023

I suspect that just delaying the PlayerListPacket TYPE_REMOVE to remove the fake player would be sufficient. PlayerSkinPacket might also work (it broke a while ago, but it's possible it was fixed).

@dktapps dktapps added Category: Client Related to Mojang client (usually client-caused bugs) Status: Unconfirmed Bug has not yet been reproduced by a maintainer Category: Network Related to the internal network architecture labels Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Client Related to Mojang client (usually client-caused bugs) Category: Network Related to the internal network architecture Status: Unconfirmed Bug has not yet been reproduced by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants