From 0b94ce9f42d8691a7f40bbd632c086efcad44f47 Mon Sep 17 00:00:00 2001 From: p2r3 Date: Sat, 16 Aug 2025 22:28:33 +0300 Subject: [PATCH] adjust ore probability --- src/worldgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worldgen.c b/src/worldgen.c index c7e9c9c..1164816 100644 --- a/src/worldgen.c +++ b/src/worldgen.c @@ -141,7 +141,7 @@ skip_tree: if (y == ore_y) { // Since the ore Y coordinate is effectely a random number in range [0;64], // we use it in another bit shift to get a pseudo-random number for the column - uint8_t ore_probability = (anchor.hash >> ore_y) & 127; + uint8_t ore_probability = (anchor.hash >> ore_y) & 255; // Ore placement is determined by Y level and "probability" if (y < 15 && ore_probability < 15) return B_diamond_ore; if (y < 30) {