log statements

This commit is contained in:
BuckarooBanzay 2020-06-08 13:15:34 +02:00
parent 9ec86aa254
commit d6f69d5ee9
2 changed files with 20 additions and 0 deletions

View File

@ -7,6 +7,11 @@ area_effects.register_hook({
if data and data.skybox then
for _, skyboxdef in ipairs(epic_skybox.list) do
if skyboxdef.name == data.skybox then
minetest.log(
"action",
"[area_effects] setting skybox " .. skyboxdef.name ..
" for player" .. player:get_player_name()
)
epic_skybox.set_skybox(player, skyboxdef)
break
end
@ -17,6 +22,11 @@ area_effects.register_hook({
leave = function(player, id)
local data = area_effects.get(id)
if data and data.skybox then
minetest.log(
"action",
"[area_effects] clearing skybox " ..
" for player" .. player:get_player_name()
)
epic_skybox.set_skybox(player, {})
end
end

View File

@ -5,6 +5,11 @@ area_effects.register_hook({
enter = function(player, id)
local data = area_effects.get(id)
if data and data.no_clouds then
minetest.log(
"action",
"[area_effects] setting no_clouds" ..
" for player" .. player:get_player_name()
)
player:set_clouds({density=0,speed=0})
end
end,
@ -12,6 +17,11 @@ area_effects.register_hook({
leave = function(player, id)
local data = area_effects.get(id)
if data and data.no_clouds then
minetest.log(
"action",
"[area_effects] setting clouds" ..
" for player" .. player:get_player_name()
)
player:set_clouds({
thickness=16,
color={r=243, g=214, b=255, a=229},