mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Drops now have starting speed, correct entity motion at spawn
This commit is contained in:
parent
09efcec605
commit
fc02572065
4 changed files with 13 additions and 11 deletions
|
|
@ -131,6 +131,7 @@ class Entity extends Position{
|
|||
$this->size = 1;
|
||||
break;
|
||||
}
|
||||
$this->updateLast();
|
||||
}
|
||||
|
||||
public function getDrops(){
|
||||
|
|
@ -421,7 +422,7 @@ class Entity extends Position{
|
|||
$this->server->api->handle("entity.motion", $this);
|
||||
}
|
||||
|
||||
}elseif($this->class === ENTITY_PLAYER){
|
||||
}elseif($this->class === ENTITY_PLAYER and ($this->player instanceof Player)){
|
||||
if($support === false and ($this->player->gamemode & 0x01) === 0x00){
|
||||
if($this->fallY === false or $this->fallStart === false){
|
||||
$this->fallY = $y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue