tweaked delay when picking up items, experimental hotbar is now disabled by default

This commit is contained in:
GameHerobrine 2024-11-23 03:10:26 +03:00
parent a4a5f1dfdf
commit 46efebaf67
8 changed files with 11 additions and 9 deletions

View file

@ -44,7 +44,7 @@ class WheatBlock extends FlowableBlock{
}
public static function neighborChanged(Level $level, $x, $y, $z, $nX, $nY, $nZ, $oldID){
if($level->level->getBlockID($x, $y - 1, $z) != FARMLAND){
ServerAPI::request()->api->entity->drop(new Position($x + 0.5, $y, $z + 0.5, $level), BlockAPI::getItem(WHEAT_SEEDS, 0, 1));
ServerAPI::request()->api->entity->drop(new Position($x + 0.5, $y, $z + 0.5, $level), BlockAPI::getItem(WHEAT_SEEDS, 0, 1), 10);
$level->fastSetBlockUpdate($x, $y, $z, 0, 0);
}
}