mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed death in Creative mode
This commit is contained in:
parent
fd1186061f
commit
54e6bd0ee9
1 changed files with 3 additions and 0 deletions
|
|
@ -389,6 +389,9 @@ class Player{
|
|||
$this->entity->setPosition($data["x"], $data["y"], $data["z"], 0, 0);
|
||||
break;
|
||||
case MC_SET_HEALTH:
|
||||
if($this->server->gamemode === 1){
|
||||
break;
|
||||
}
|
||||
$this->entity->setHealth($data["health"], "client");
|
||||
break;
|
||||
case MC_DROP_ITEM:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue