Skip to main content

break_time

Function break_time 

Source
pub fn break_time(progress: f32, destroy_delay: u32, limit: u32) -> BreakTime
Expand description

The tick the client finishes the block, accumulating progress in f32 as MultiPlayerGameMode does: the start tick runs startDestroyBlock and then continueDestroyBlock, every later tick continueDestroyBlock. The first destroy_delay continue calls only count the delay down (5 after the client finished a block, else 0). limit bounds the search (vanilla has none).