From 1cd4aa41b6bcbd815fa165600652cfcda8a5af5f Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Wed, 22 Jun 2022 19:45:46 +0300 Subject: [PATCH] Update Player.php fixed dandelion in spectator's inventory --- src/Player.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Player.php b/src/Player.php index b8c5dd06..81ca1ca5 100755 --- a/src/Player.php +++ b/src/Player.php @@ -1037,7 +1037,7 @@ class Player{ if(($gm & 0x01) === 0x01 and ($gm & 0x02) === 0x02){ $inv = array(); foreach(BlockAPI::$creative as $item){ - $inv[] = BlockAPI::getItem(DANDELION, 0, 1); + $inv[] = BlockAPI::getItem(0, 0, 1); } }elseif(($gm & 0x01) === 0x01){ $inv = array(); @@ -1352,7 +1352,7 @@ class Player{ return; } - $this->server->send2Discord($this->username . " joined the game"); + $this->server->send2Discord($this->username." joined the game"); $this->auth = true; if(!$this->data->exists("inventory") or ($this->gamemode & 0x01) === 0x01){ @@ -1360,7 +1360,7 @@ class Player{ $inv = array(); if(($this->gamemode & 0x02) === 0x02){ foreach(BlockAPI::$creative as $item){ - $inv[] = array(DANDELION, 0, 1); + $inv[] = array(0, 0, 1); } }else{ foreach(BlockAPI::$creative as $item){