mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Removed flying damage
This commit is contained in:
parent
1c63448c6c
commit
aecfbbbdc1
@ -326,12 +326,6 @@ class Entity extends stdClass{
|
|||||||
}elseif($y > $this->fallY){
|
}elseif($y > $this->fallY){
|
||||||
$this->fallY = $y;
|
$this->fallY = $y;
|
||||||
}
|
}
|
||||||
if($this->fallY !== false and ($this->fallStart + 8) < microtime(true)){ //Flying
|
|
||||||
$this->harm(1, "flying");
|
|
||||||
if($y > $this->fallY){
|
|
||||||
$this->fallY = $y;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}elseif($this->fallY !== false){ //Fall damage!
|
}elseif($this->fallY !== false){ //Fall damage!
|
||||||
if($y < $this->fallY){
|
if($y < $this->fallY){
|
||||||
$d = $this->server->api->block->getBlock(new Vector3($x, $y + 1, $z));
|
$d = $this->server->api->block->getBlock(new Vector3($x, $y + 1, $z));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user