mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
'50. При переходе в спектатор броня не исчезает' - fixed, intergrated @Tema1d 's writing to LevelAPI
This commit is contained in:
parent
1a585d0ea8
commit
c6900c83c7
2 changed files with 5 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class LevelAPI{
|
||||||
$this->server->saveEnabled = true;
|
$this->server->saveEnabled = true;
|
||||||
$this->saveAll();
|
$this->saveAll();
|
||||||
$this->server->saveEnabled = $save;
|
$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;
|
break;
|
||||||
case "save-on":
|
case "save-on":
|
||||||
$this->server->saveEnabled = true;
|
$this->server->saveEnabled = true;
|
||||||
|
|
|
||||||
|
|
@ -1033,6 +1033,10 @@ class Player{
|
||||||
}
|
}
|
||||||
|
|
||||||
$inv =& $this->inventory;
|
$inv =& $this->inventory;
|
||||||
|
if($gm === VIEW){
|
||||||
|
$this->armor = array();
|
||||||
|
$this->sendArmor();
|
||||||
|
}
|
||||||
if(($this->gamemode & 0x01) === ($gm & 0x01)){
|
if(($this->gamemode & 0x01) === ($gm & 0x01)){
|
||||||
if(($gm & 0x01) === 0x01 and ($gm & 0x02) === 0x02){
|
if(($gm & 0x01) === 0x01 and ($gm & 0x02) === 0x02){
|
||||||
$inv = array();
|
$inv = array();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue