fix error with some minetest versions

This commit is contained in:
Berengma 2020-02-06 15:17:56 +07:00
parent 1010642c69
commit 001a9127eb

View File

@ -11,7 +11,7 @@ local time = os.time
-- pseudo random generator, init and call function
water_life.randomtable = PcgRandom(math.random(2^31))
water_life.randomtable = PcgRandom(math.random(2^31),1)
function water_life.random(min,max)
if not min and not max then return water_life.randomtable:next() / 2^31 end