mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Update Player.php
fixed dandelion in spectator's inventory
This commit is contained in:
parent
a810d5aeae
commit
1cd4aa41b6
1 changed files with 3 additions and 3 deletions
|
|
@ -1037,7 +1037,7 @@ class Player{
|
||||||
if(($gm & 0x01) === 0x01 and ($gm & 0x02) === 0x02){
|
if(($gm & 0x01) === 0x01 and ($gm & 0x02) === 0x02){
|
||||||
$inv = array();
|
$inv = array();
|
||||||
foreach(BlockAPI::$creative as $item){
|
foreach(BlockAPI::$creative as $item){
|
||||||
$inv[] = BlockAPI::getItem(DANDELION, 0, 1);
|
$inv[] = BlockAPI::getItem(0, 0, 1);
|
||||||
}
|
}
|
||||||
}elseif(($gm & 0x01) === 0x01){
|
}elseif(($gm & 0x01) === 0x01){
|
||||||
$inv = array();
|
$inv = array();
|
||||||
|
|
@ -1352,7 +1352,7 @@ class Player{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->server->send2Discord($this->username . " joined the game");
|
$this->server->send2Discord($this->username." joined the game");
|
||||||
|
|
||||||
$this->auth = true;
|
$this->auth = true;
|
||||||
if(!$this->data->exists("inventory") or ($this->gamemode & 0x01) === 0x01){
|
if(!$this->data->exists("inventory") or ($this->gamemode & 0x01) === 0x01){
|
||||||
|
|
@ -1360,7 +1360,7 @@ class Player{
|
||||||
$inv = array();
|
$inv = array();
|
||||||
if(($this->gamemode & 0x02) === 0x02){
|
if(($this->gamemode & 0x02) === 0x02){
|
||||||
foreach(BlockAPI::$creative as $item){
|
foreach(BlockAPI::$creative as $item){
|
||||||
$inv[] = array(DANDELION, 0, 1);
|
$inv[] = array(0, 0, 1);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
foreach(BlockAPI::$creative as $item){
|
foreach(BlockAPI::$creative as $item){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue