mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fence should collide with entities, gravel fix
This commit is contained in:
parent
b115c19093
commit
7768ad03a9
4 changed files with 37 additions and 6 deletions
|
|
@ -3,6 +3,7 @@
|
|||
class MobController
|
||||
{
|
||||
public static $ADVANCED = false;
|
||||
public static $landed = false;
|
||||
public static $DANGEROUS_BLOCKS = [
|
||||
LAVA => true,
|
||||
STILL_LAVA => true,
|
||||
|
|
@ -93,11 +94,10 @@ class MobController
|
|||
}
|
||||
|
||||
public function movementTick(){
|
||||
if($this->isJumping() && $this->jumpTimeout <= 0){
|
||||
if($this->isJumping() && $this->jumpTimeout <= 0 && $this->entity->onGround){
|
||||
$this->jumpTimeout = 10;
|
||||
$this->entity->speedY = 0.42;
|
||||
$this->entity->speedY = 0.40;
|
||||
}
|
||||
|
||||
if($this->jumpTimeout > 0) --$this->jumpTimeout;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue