From bcb106c4f706b946ff92f91814f59de99038e51b Mon Sep 17 00:00:00 2001 From: Aaron Suen Date: Thu, 14 Nov 2024 19:47:43 -0500 Subject: [PATCH] Fix unoptimized code warning --- mods/nc_lux/radiation.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/nc_lux/radiation.lua b/mods/nc_lux/radiation.lua index de375940..d6f16fa8 100644 --- a/mods/nc_lux/radiation.lua +++ b/mods/nc_lux/radiation.lua @@ -174,7 +174,7 @@ nc.register_playerstep({ data.radtime = (data.radtime or 0) + dtime if data.radtime > 1/4 then local inrate = (nodescan(player) + itemscan(player)) / 256 - local p = math.pow(0.99, data.radtime * 16) + local p = math_pow(0.99, data.radtime * 16) rate = (rate or 0) * p + inrate * (1 - p) if inrate > 0 and math_random() < inrate then rad = 1 - (1 - rad) * 31/32