Update Player.php

fixed dandelion in spectator's inventory
This commit is contained in:
ArkQuark 2022-06-22 19:45:46 +03:00
parent a810d5aeae
commit 1cd4aa41b6

View file

@ -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();
@ -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){