Pocketmine-mp: Disappearance of GUI after teleport a player.

Created on 25 Aug 2017  路  17Comments  路  Source: pmmp/PocketMine-MP

Issue description




When you teleport a player with a window opened to another position, the player's GUI disappear.
EDIT:
If you teleport again the player with window opened and GUI disappeared, it will be display the blue sky.

Steps to reproduce the issue

  1. Log-in with 2 players.
  2. Open a chest with a player.
  3. Teleport the player with opened chest to other one.
    EDIT:
  4. Open again a chest with the same player who the GUI is disappeared.
  5. Teleport the player again.

OS and versions

Plugins

  • Test on a clean server without plugins: is the issue reproducible without any plugins loaded? Yes
Client Fixed

All 17 comments

It's because the player moves away from the source. It's the same in vanilla

@jasonwynn10 In vanilla works fine. The chest inventory is closed correctly and the player teleported as well.

Oh, you didn't specify the issue

Because I've already talked to dktapps about this problem. I opened it just to remind him.

I can confirm. It can be fixed with removing code:
$this->removeAllWindows();

@vzlomka76 where do you see it? 馃

in teleport method (in Player class)

@matcracker I'm now talking about mcpe-1.2 branch.
In master branch you will delete this code from teleport method:
foreach($this->windowIndex as $window){ if($window === $this->inventory){ continue; } $this->removeWindow($window); }

do not do that^ it might solve your problem but will create many more.

@Muqsit i know this, but I gave the reason for this bug

This will work (i think)
$packet = new \pocketmine\network\mcpe\protocol\ContainerClosePacket(); $packet->windowid = 0; $player->dataPacket($packet);

I cannot reproduce this bug with MCPE 1.2.0.25.

This issue is referred to MCPE 1.1.5

My point is that since it doesn't occur on the beta, this is more likely to be down to a quirk in the client which has been fixed in 1.2.

I don't have MCPE 1.1.5, but I also cannot reproduce the bug on 1.1.4.51.

I will try again... But I'm sure that this happens

I can鈥檛 reproduce this issue on 1.2 but yeah, it affects me on 1.1.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RedstoneAlmeida picture RedstoneAlmeida  路  3Comments

nmo0ory picture nmo0ory  路  3Comments

dktapps picture dktapps  路  3Comments

jasonwynn10 picture jasonwynn10  路  3Comments

MisteFr picture MisteFr  路  3Comments