'50. При переходе в спектатор броня не исчезает' - fixed, intergrated @Tema1d 's writing to LevelAPI

This commit is contained in:
GameHerobrine 2022-07-11 00:01:02 +03:00
parent 1a585d0ea8
commit c6900c83c7
2 changed files with 5 additions and 1 deletions

View file

@ -65,7 +65,7 @@ class LevelAPI{
$this->server->saveEnabled = true;
$this->saveAll();
$this->server->saveEnabled = $save;
$this->server->api->chat->broadcast("[NostalgiaCore] All data is saved.");
$this->server->api->chat->broadcast("[NostalgiaCore] All files are saved.");
break;
case "save-on":
$this->server->saveEnabled = true;

View file

@ -1033,6 +1033,10 @@ class Player{
}
$inv =& $this->inventory;
if($gm === VIEW){
$this->armor = array();
$this->sendArmor();
}
if(($this->gamemode & 0x01) === ($gm & 0x01)){
if(($gm & 0x01) === 0x01 and ($gm & 0x02) === 0x02){
$inv = array();