mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
jumping on farmland will update neighbors if block changed to dirt
This commit is contained in:
parent
e45b99c7e9
commit
2db7d4e338
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class FarmlandBlock extends TransparentBlock{
|
||||||
public static function fallOn(Level $level, $x, $y, $z, Entity $entity, $fallDistance){
|
public static function fallOn(Level $level, $x, $y, $z, Entity $entity, $fallDistance){
|
||||||
$rv = lcg_value();
|
$rv = lcg_value();
|
||||||
if($rv < ($fallDistance - 0.5)){
|
if($rv < ($fallDistance - 0.5)){
|
||||||
$level->fastSetBlockUpdate($x, $y, $z, DIRT, 0);
|
$level->fastSetBlockUpdate($x, $y, $z, DIRT, 0, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue