mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
fixed falling from half blocks causing farmland to disappeat
This commit is contained in:
parent
38ced36e16
commit
2838640649
1 changed files with 1 additions and 1 deletions
|
|
@ -964,7 +964,7 @@ class Entity extends Position
|
||||||
$bid = $this->level->level->getBlockID($x, $y, $z);
|
$bid = $this->level->level->getBlockID($x, $y, $z);
|
||||||
if($bid > 0){
|
if($bid > 0){
|
||||||
$clz = StaticBlock::getBlock($bid);
|
$clz = StaticBlock::getBlock($bid);
|
||||||
$clz::fallOn($this->level, $x, $y, $z, $this, ceil($this->fallStart - $this->y));
|
$clz::fallOn($this->level, $x, $y, $z, $this, $this->fallStart - $this->y);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dmg = ceil($this->fallStart - $this->y - 3);
|
$dmg = ceil($this->fallStart - $this->y - 3);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue