From 7d8b6f3b90d1dd7f44ea9e89b7929dc925cac6e0 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 26 Oct 2026 15:47:37 +0100 Subject: [PATCH] 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 --- crates/horizon-world/src/level/interact.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/horizon-world/src/level/interact.rs b/crates/horizon-world/src/level/interact.rs index a1f786184..6bed21440 100644 --- a/crates/horizon-world/src/level/interact.rs +++ b/crates/horizon-world/src/level/interact.rs @@ -423,8 +423,6 @@ impl 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 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);