log statements
This commit is contained in:
parent
9ec86aa254
commit
d6f69d5ee9
@ -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
|
||||
|
@ -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},
|
||||
|
Loading…
x
Reference in New Issue
Block a user