Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
new setting "is_winter" to active snow when winter and active snow now
Browse files Browse the repository at this point in the history
  • Loading branch information
Crabman77 committed Dec 10, 2016
1 parent 0065925 commit 5412da3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions minetest.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###
################
Expand Down
5 changes: 4 additions & 1 deletion mods/christmas_craft/init.lua
Original file line number Diff line number Diff line change
@@ -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", {
Expand Down

0 comments on commit 5412da3

Please sign in to comment.