mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed #748 Player health not being saved [gh#748]
This commit is contained in:
parent
30483d5312
commit
7865b8dbe5
2 changed files with 6 additions and 2 deletions
|
|
@ -463,7 +463,7 @@ class PlayerAPI{
|
|||
$data = new Config(DATA_PATH."players/".$iname.".yml", CONFIG_YAML, $default);
|
||||
}
|
||||
|
||||
if(($this->server->gamemode & 0x01) === 0x01){
|
||||
if(($data->get("gamemode") & 0x01) === 1){
|
||||
$data->set("health", 20);
|
||||
}
|
||||
$this->server->handle("player.offline.get", $data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue