Composter: keep addLayer's doc on composter_add_layer

The extracted composter_extract_produce took the doc comment of the
function below it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-26 15:47:37 +01:00
parent 48c0f39e96
commit 7d8b6f3b90
+2 -2
View File
@@ -423,8 +423,6 @@ impl<L: LevelAccess + ?Sized> Sim<'_, L> {
InteractionResult::Success
}
/// `ComposterBlock.addLayer` once its `compostable` provider gave
/// `layers`: the new state (the old one when no layer is added).
/// `ComposterBlock.extractProduce`: the bone meal pops out, the composter
/// empties and its sound plays.
fn composter_extract_produce(&mut self, pos: BlockPos, state: BlockStateId) {
@@ -444,6 +442,8 @@ impl<L: LevelAccess + ?Sized> Sim<'_, L> {
});
}
/// `ComposterBlock.addLayer` once its `compostable` provider gave
/// `layers`: the new state (the old one when no layer is added).
fn composter_add_layer(&mut self, pos: BlockPos, layers: i32) -> BlockStateId {
let b = self.b;
let state = self.state(pos);