mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed farmland not becoming dirt when player jumping
This commit is contained in:
parent
f3a0705c66
commit
5364718d13
2 changed files with 3 additions and 4 deletions
|
|
@ -850,13 +850,13 @@ class Entity extends Position
|
|||
if($this->isPlayer()){
|
||||
|
||||
$x = floor($this->x);
|
||||
$y = floor($this->y - 0.2);
|
||||
$y = floor($this->y - 1); //TODO not 1
|
||||
$z = floor($this->z);
|
||||
$bid = $this->level->level->getBlockID($x, $y, $z);
|
||||
|
||||
console($this->y.":".$y);
|
||||
if($bid > 0){
|
||||
$clz = StaticBlock::getBlock($bid);
|
||||
$clz::fallOn($this->level, $x, $y, $z, $this, floor($this->fallStart - $this->y));
|
||||
$clz::fallOn($this->level, $x, $y, $z, $this, ceil($this->fallStart - $this->y));
|
||||
}
|
||||
|
||||
$dmg = ceil($this->fallStart - $this->y - 3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue