Skip to content

Commit

Permalink
Fixed merge
Browse files Browse the repository at this point in the history
  • Loading branch information
OfficialKris committed Dec 12, 2024
1 parent b6e6b63 commit 97537a2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pumpkin/src/block/block_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,6 @@ impl BlockManager {
}
}

pub async fn on_close(
&self,
block: &Block,
player: &Player,
location: WorldPosition,
server: &Server,
) {
let pumpkin_block = self.get_pumpkin_block(block);
if let Some(pumpkin_block) = pumpkin_block {
pumpkin_block.on_close(player, location, server).await;
}
}

#[must_use]
pub fn get_pumpkin_block(&self, block: &Block) -> Option<&Arc<dyn PumpkinBlock>> {
self.blocks
Expand Down

0 comments on commit 97537a2

Please sign in to comment.