mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 06:43:17 -04:00
Disable Clouds and rename spacetime mod to sky
This commit is contained in:
parent
cba9a16f19
commit
26b125064c
2 changed files with 11 additions and 8 deletions
11
mods/sky/init.lua
Normal file
11
mods/sky/init.lua
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
-- Set time to midnight.
|
||||||
|
minetest.register_on_joinplayer(function(player)
|
||||||
|
minetest.set_timeofday(0)
|
||||||
|
minetest.setting_set("time_speed", 0)
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- Disable clouds.
|
||||||
|
minetest.register_on_joinplayer(function(player)
|
||||||
|
minetest.setting_set("enable_clouds", 0)
|
||||||
|
end)
|
|
@ -1,8 +0,0 @@
|
||||||
spacetime = {}
|
|
||||||
|
|
||||||
-- On joinplayer
|
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
|
||||||
minetest.set_timeofday(0)
|
|
||||||
minetest.setting_set("time_speed", 0)
|
|
||||||
end)
|
|
Loading…
Add table
Reference in a new issue