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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user