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.
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.