Update meta information

This commit is contained in:
Till Affeldt 2020-04-14 05:49:14 +02:00
parent 42fa044c48
commit 46471862e9
4 changed files with 8 additions and 7 deletions

View File

@ -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)

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 548 KiB

After

Width:  |  Height:  |  Size: 700 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 700 KiB

After

Width:  |  Height:  |  Size: 289 KiB