Display call stack to assist in removing deprecated function calls

This commit is contained in:
teknomunk 2024-03-19 07:12:42 +00:00
parent 5b1fcf76f6
commit f44102c238
2 changed files with 2 additions and 0 deletions

View file

@ -54,6 +54,7 @@ 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())
table.insert(mcl_bone_meal.bone_meal_callbacks, func) table.insert(mcl_bone_meal.bone_meal_callbacks, func)
end end

View file

@ -119,6 +119,7 @@ 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())
mcl_bone_meal.add_bone_meal_particle(pos, def) mcl_bone_meal.add_bone_meal_particle(pos, def)
end end