diff --git a/init.lua b/init.lua index 9d4c5d2..5f19121 100644 --- a/init.lua +++ b/init.lua @@ -9,11 +9,11 @@ local DEFAULT_STYLE = "realistic" -- default texture style moon_phases = {} local state = minetest.get_mod_storage() if not state:contains("day") then - state:from_table({ + state:from_table({fields = { day = 1, phase = 1, change_time = 1 - }) + }}) end -- retrieve mod configuration @@ -100,8 +100,6 @@ end -- set the moon texture of newly joined player minetest.register_on_joinplayer(function(player) local phase = state:get_int("phase") - -- phase might not have been set at server start - if phase < 1 then phase = 1 end set_texture(player, phase) end) diff --git a/mod.conf b/mod.conf index 3061728..61b692a 100644 --- a/mod.conf +++ b/mod.conf @@ -3,8 +3,11 @@ title = Moon Phases author = TestificateMods release = 10100 description = """ - Changes the moon to follow a cycle between eight different phases. - Expect the sky to change every four nights (or configure a custom schedule). - Requires at least Minetest 5.2.0 +Changes the moon to follow a cycle between eight different phases. +Expect the sky to change every four nights (or configure a custom schedule). +Includes realistic 256x256px moon textures from NASA photographies as well as +square vanilla themed 16x16px textures + +Requires at least Minetest 5.2.0 """ optional_depends = skylayer \ No newline at end of file diff --git a/screenshot.2.png b/screenshot.2.png index c9d550a..e0dcb8b 100644 Binary files a/screenshot.2.png and b/screenshot.2.png differ diff --git a/screenshot.png b/screenshot.png index e0dcb8b..df62415 100644 Binary files a/screenshot.png and b/screenshot.png differ