new setting "is_winter" to active snow when winter and active snow now

This commit is contained in:
crabman77 2016-12-10 22:34:07 +01:00
parent 006592534c
commit 5412da3c19
2 changed files with 6 additions and 1 deletions

View File

@ -138,6 +138,8 @@ hudbars_start_offset_left_y = -100
hudbars_start_offset_right_y = -100
# Mysql Auth, config file path
mysql_auth.cfgfile = /home/quentinbd/mysql_auth/mff-classic_config
# CHRISTMAS_CRAFT, active snow when winter(december/january)
is_winter = true
### IRC CHAT ###
################

View File

@ -1,6 +1,9 @@
--dofile(minetest.get_modpath("christmas_craft").."/mods.lua")--disabled because 4seasons is not installed
dofile(minetest.get_modpath("christmas_craft").."/crafts.lua") --temporary disabled because cristmas is over--
--dofile(minetest.get_modpath("christmas_craft").."/settings.lua") -- makes it snow
if minetest.setting_getbool("is_winter") then
dofile(minetest.get_modpath("christmas_craft").."/settings.lua") -- makes it snow
end
-- blocks --
minetest.register_node("christmas_craft:snowman", {