mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Changes in item spawning
This commit is contained in:
parent
862947ab6b
commit
da2b800ea8
2 changed files with 7 additions and 2 deletions
|
|
@ -246,11 +246,13 @@ class Entity extends stdClass{
|
|||
$b = $this->server->api->level->getBlock($x, $y, $z);
|
||||
if(isset(Material::$transparent[$b[0]])){
|
||||
$this->speedY -= 0.04 * 4;
|
||||
$this->server->api->dhandle("entity.motion", $this);
|
||||
$this->server->api->handle("entity.motion", $this);
|
||||
}elseif($this->speedY < 0){
|
||||
$this->y = $y + 1;
|
||||
$this->speedX = 0;
|
||||
$this->speedY = 0;
|
||||
$this->server->api->dhandle("entity.motion", $this);
|
||||
$this->speedZ = 0;
|
||||
$this->server->api->handle("entity.motion", $this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue