diff --git a/crates/horizon-world/src/worldgen/long_set.rs b/crates/horizon-world/src/worldgen/long_set.rs index cfb79899e..55b2b0130 100644 --- a/crates/horizon-world/src/worldgen/long_set.rs +++ b/crates/horizon-world/src/worldgen/long_set.rs @@ -41,7 +41,7 @@ pub fn iteration_order(keys: &[i64]) -> Vec { table[pos] = Some(index); } size += 1; - if size - 1 >= max_fill(n) { + if size > max_fill(n) { let new_n = array_size(size + 1); let mut grown: Vec> = vec![None; new_n]; for slot in table.iter().rev().flatten() {