From a9c842897c78531c665a06905753da5538bc81e2 Mon Sep 17 00:00:00 2001 From: Niklp Date: Thu, 28 Dec 2023 22:00:12 +0100 Subject: [PATCH] Generate new randomseed after use --- oil/explore.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oil/explore.lua b/oil/explore.lua index 0047225..bc2407f 100644 --- a/oil/explore.lua +++ b/oil/explore.lua @@ -51,6 +51,8 @@ local function oil_amount(pos) local amount = math.random(OIL_MIN, OIL_MAX) return amount end + -- Generate new randomseed after use + math.randomseed(os.time()) return 0 end