mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed warnings when switching gamemode
This commit is contained in:
parent
9aa0986145
commit
205e432f52
1 changed files with 1 additions and 1 deletions
|
|
@ -1791,7 +1791,7 @@ class Player{
|
|||
|
||||
if($this->server->handle("player.equipment.change", $data) !== false){
|
||||
$this->slot = $packet->slot;
|
||||
if(($this->gamemode & 0x01) === SURVIVAL){
|
||||
if(($this->gamemode & 0x01) === SURVIVAL && count($this->hotbar) >= $this->slotCount){
|
||||
|
||||
$has = false;
|
||||
for($i = 0; $i < $this->slotCount; ++$i){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue