Skip to content

Commit

Permalink
fix bugs (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
GameParrot authored Sep 18, 2024
1 parent e94d2aa commit 4cae6dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/network/mcpe/NetworkSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ function() use ($protocolVersion) : void{
/**
* Instructs the remote client to connect to a different server.
*/
public function transfer(string $ip, int $port, Translatable|string|null $reason = null, bool $reloadWorld = true) : void{
public function transfer(string $ip, int $port, Translatable|string|null $reason = null, bool $reloadWorld = false) : void{
$this->flushChunkCache();
$reason ??= KnownTranslationFactory::pocketmine_disconnect_transfer();
$this->tryDisconnect(function() use ($ip, $port, $reason, $reloadWorld) : void{
Expand Down
2 changes: 1 addition & 1 deletion src/network/mcpe/handler/ItemStackResponseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function build() : ItemStackResponse{

$responseContainerInfos = [];
foreach($responseInfosByContainer as $containerInterfaceId => $responseInfos){
$responseContainerInfos[] = new ItemStackResponseContainerInfo(new FullContainerName($containerInterfaceId, 0), $responseInfos);
$responseContainerInfos[] = new ItemStackResponseContainerInfo(new FullContainerName($containerInterfaceId), $responseInfos);
}

return new ItemStackResponse(ItemStackResponse::RESULT_OK, $this->requestId, $responseContainerInfos);
Expand Down

0 comments on commit 4cae6dd

Please sign in to comment.