This commit is contained in:
kotyara 2024-03-15 20:13:32 +05:00 • committed by GitHub
parent 437576a981
commit a4b7fbf2df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 24 additions and 24 deletions

View file

@ -32,7 +32,7 @@ class FarmlandBlock extends TransparentBlock{
$b = $level->level->getBlockID($x, $y + 1, $z);
if(!StaticBlock::getIsFlowable($b)){
$level->fastSetBlockUpdate($x, $y, $z, DIRT, 0, true);
}else if($meta === 0 && mt_rand(0, 5) === 0){
}elseif($meta === 0 && mt_rand(0, 5) === 0){
$water = self::checkWaterStatic($level, $x, $y, $z);
if($water){
$level->fastSetBlockUpdate($x, $y, $z, FARMLAND, 1, true);