[mcl_moon] fix warnings

This commit is contained in:
AFCMS 2021-05-23 14:48:52 +02:00
parent 36dc18e9da
commit 9f41c6fc64

View File

@ -4,11 +4,9 @@ local SHEET_W = 4
local SHEET_H = 2
-- Randomize initial moon phase, based on map seed
local phase_offset
local mg_seed = minetest.get_mapgen_setting("seed")
local rand = PseudoRandom(mg_seed)
local phase_offset = rand:next(0, MOON_PHASES - 1)
rand = nil
minetest.log("info", "[mcl_moon] Moon phase offset of this world: "..phase_offset)