mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
mob bodies should drop
This commit is contained in:
parent
157f794c7f
commit
0aaa0e70df
4 changed files with 12 additions and 15 deletions
|
|
@ -1457,12 +1457,8 @@ class Entity extends Position
|
|||
}else{
|
||||
$pk = new EntityEventPacket;
|
||||
$pk->eid = $this->eid;
|
||||
$pk->event = 3;
|
||||
$pk->event = EntityEventPacket::ENTITY_DEAD;
|
||||
$this->server->api->player->broadcastPacket($this->level->players, $pk);
|
||||
$this->server->api->dhandle("entity.event", [
|
||||
"entity" => $this,
|
||||
"event" => 3
|
||||
]); // Entity dead
|
||||
}
|
||||
if($this->player instanceof Player){
|
||||
$this->player->blocked = true;
|
||||
|
|
@ -1474,7 +1470,7 @@ class Entity extends Position
|
|||
$this->server->api->ban->ban($this->player->username);
|
||||
}
|
||||
} else{
|
||||
$this->close();
|
||||
$this->server->api->schedule(40, [$this, "close"], []);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue