fixed farmland not becoming dirt when player jumping

This commit is contained in:
GameHerobrine 2024-03-05 04:57:39 +03:00
parent f3a0705c66
commit 5364718d13
2 changed files with 3 additions and 4 deletions

View file

@ -22,7 +22,6 @@ class FarmlandBlock extends TransparentBlock{
public static function fallOn(Level $level, $x, $y, $z, Entity $entity, $fallDistance){
$rv = lcg_value();
console("rv: $rv, fd: ".($fallDistance - 0.5));
if($rv < ($fallDistance - 0.5)){
$level->fastSetBlockUpdate($x, $y, $z, DIRT, 0);
}