diff --git a/client/Client.php b/client/Client.php index 5db7dd0..2aed2cd 100644 --- a/client/Client.php +++ b/client/Client.php @@ -32,7 +32,8 @@ function __construct() //add client $client = new PocketEditionClient( - new Address('dragonw.ru', 19999), + new Address('pigcraft.ru', 19133), +// new Address('dragonw.ru', 19999), // new Address('bmpe.pw', 19134), new Bot( 'robotXXXsuper', diff --git a/client/PocketEditionClient.php b/client/PocketEditionClient.php index aa176b6..75d33ab 100644 --- a/client/PocketEditionClient.php +++ b/client/PocketEditionClient.php @@ -747,8 +747,9 @@ protected function handleDataPacket(DataPacket $packet): void case ContainerIds::ARMOR: $player->getArmor()->setAll($slots); break; + case ContainerIds::CREATIVE: default: - mess('CONTENT_CONTAINER_ID', $packet->windowid); + mess('CONTENT_CONTAINER_ID', (string)$packet->windowid); break; } }