and remove deprecated depends.txt
This commit is contained in:
Crabman77 2022-07-10 22:51:13 +02:00
parent 06a3ca6265
commit dcdf6b3a9b
2 changed files with 2 additions and 15 deletions

View File

@ -1,13 +0,0 @@
default
vessels
tnt
fire
playereffects
player_monoids?
farming?
lightning?
pmobs?
hud_hunger?
hunger_ng?
moreplants?
horror?

View File

@ -3167,7 +3167,7 @@ minetest.register_node("witchcraft:potion_ggreen", {
}) })
local mtime = minetest.get_timeofday() local mtime = minetest.get_timeofday()
if mtime >= 0.25 and mtime <= 0.75 then if mtime >= 0.25 and mtime <= 0.75 then
user:override_day_night_ratio(-mtime+0.5) user:override_day_night_ratio(math.min(math.max(-mtime+0.5, 0), 1))
minetest.after(10, function() minetest.after(10, function()
user:override_day_night_ratio(nil) user:override_day_night_ratio(nil)
end) end)
@ -3391,7 +3391,7 @@ minetest.register_node("witchcraft:potion_blue2_2", {
function lightchange(person, duration) function lightchange(person, duration)
local mtime = minetest.get_timeofday() local mtime = minetest.get_timeofday()
if mtime <= 0.25 or mtime >= 0.75 then if mtime <= 0.25 or mtime >= 0.75 then
person:override_day_night_ratio(mtime+0.5) person:override_day_night_ratio(math.min(math.max(mtime+0.5, 0), 1))
minetest.after(duration, function() minetest.after(duration, function()
person:override_day_night_ratio(nil) person:override_day_night_ratio(nil)
end) end)