forked from VoxeLibre/VoxeLibre
Modify backtrace listing to use minetest.log
This commit is contained in:
parent
eb6131b037
commit
44d154f594
|
@ -54,7 +54,10 @@ mcl_bone_meal.bone_meal_callbacks = {}
|
||||||
--
|
--
|
||||||
function mcl_bone_meal.register_on_bone_meal_apply(func)
|
function mcl_bone_meal.register_on_bone_meal_apply(func)
|
||||||
minetest.log("warning", "register_on_bone_meal_apply(func) is deprecated. Read mcl_bone_meal/API.md!")
|
minetest.log("warning", "register_on_bone_meal_apply(func) is deprecated. Read mcl_bone_meal/API.md!")
|
||||||
print(debug.traceback())
|
local lines = string.split(debug.traceback(),"\n")
|
||||||
|
for _,line in ipairs(lines) do
|
||||||
|
minetest.log("warning",line)
|
||||||
|
end
|
||||||
table.insert(mcl_bone_meal.bone_meal_callbacks, func)
|
table.insert(mcl_bone_meal.bone_meal_callbacks, func)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,10 @@ end
|
||||||
--
|
--
|
||||||
function mcl_dye.add_bone_meal_particle(pos, def)
|
function mcl_dye.add_bone_meal_particle(pos, def)
|
||||||
minetest.log("warning", "mcl_dye.add_bone_meal_particles() is deprecated. Read mcl_bone_meal/API.md!")
|
minetest.log("warning", "mcl_dye.add_bone_meal_particles() is deprecated. Read mcl_bone_meal/API.md!")
|
||||||
print(debug.traceback())
|
local lines = string.split(debug.traceback(),"\n")
|
||||||
|
for _,line in ipairs(lines) do
|
||||||
|
minetest.log("warning",line)
|
||||||
|
end
|
||||||
mcl_bone_meal.add_bone_meal_particle(pos, def)
|
mcl_bone_meal.add_bone_meal_particle(pos, def)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue