From 8046d0e17c20dd13b04edc2254629667379fb0f1 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Sun, 10 Aug 2025 21:11:42 +0300 Subject: [PATCH] hopefiully fixed some warning eqozqq has --- src/Player.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index 0465d181..7758c880 100755 --- a/src/Player.php +++ b/src/Player.php @@ -1593,7 +1593,8 @@ class Player{ }else{ $pk->slots = []; for($i = 0; $i < 9; ++$i){ - [$id, $meta] = BlockAPI::$creative[$this->hotbar[$i]] ?? [0, 0]; + if(!isset($this->hotbar[$i])) [$id, $meta] = [0, 0]; + else [$id, $meta] = BlockAPI::$creative[$this->hotbar[$i]] ?? [0, 0]; $pk->slots[$i] = BlockAPI::getItem($id, $meta, 1); } $hotbar = [9, 10, 11, 12, 13, 14, 15, 16, 17];