Fix logging
parent
10fa91cc42
commit
1937241a71
|
@ -32,8 +32,6 @@ local function pick_track(dimension, underground)
|
||||||
track_key = dimension
|
track_key = dimension
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.log("track_key: " .. track_key)
|
|
||||||
|
|
||||||
local dimension_tracks = dimension_to_base_track[track_key]
|
local dimension_tracks = dimension_to_base_track[track_key]
|
||||||
|
|
||||||
if dimension_tracks and #dimension_tracks >= 1 then
|
if dimension_tracks and #dimension_tracks >= 1 then
|
||||||
|
@ -43,10 +41,12 @@ local function pick_track(dimension, underground)
|
||||||
end
|
end
|
||||||
local chosen_track = dimension_tracks[index]
|
local chosen_track = dimension_tracks[index]
|
||||||
--minetest.log("chosen_track: " .. chosen_track)
|
--minetest.log("chosen_track: " .. chosen_track)
|
||||||
|
minetest.log("action", "[mcl_music] Playing track: " .. chosen_track .. ", for context: " .. track_key)
|
||||||
return chosen_track
|
return chosen_track
|
||||||
else
|
else
|
||||||
--?
|
--?
|
||||||
end
|
end
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -70,7 +70,6 @@ local function stop_music_for_all()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function play_song(track, player_name, hp, dimension, day_count, underground)
|
local function play_song(track, player_name, hp, dimension, day_count, underground)
|
||||||
minetest.log("action", "[mcl_music] Playing track: " .. track)
|
|
||||||
local spec = {
|
local spec = {
|
||||||
name = track,
|
name = track,
|
||||||
gain = 0.3,
|
gain = 0.3,
|
||||||
|
|
Loading…
Reference in New Issue