Drops now have starting speed, correct entity motion at spawn

This commit is contained in:
Shoghi Cervantes
2013-05-30 18:55:50 +02:00
parent 09efcec605
commit fc02572065
4 changed files with 13 additions and 11 deletions

View File

@ -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;