hotbar fixes

This commit is contained in:
GameHerobrine 2024-11-15 11:52:14 +03:00
parent 053ac5abb9
commit a4a5f1dfdf
6 changed files with 16 additions and 9 deletions

View file

@ -365,7 +365,7 @@ class PlayerAPI{
"z" => $this->server->spawn->z,
],
"inventory" => array_fill(0, PLAYER_SURVIVAL_SLOTS, [AIR, 0, 0]),
"hotbar" => [0, -1, -1, -1, -1, -1, -1, -1, -1],
"hotbar" => [0, 1, 2, 3, 4, 5, 6, 7, 8],
"armor" => array_fill(0, 4, [AIR, 0]),
"gamemode" => $this->server->gamemode,
"health" => 20,