Skip to content

Commit

Permalink
Deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyBuilder1717 authored Feb 7, 2025
1 parent b45599f commit 33367eb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions builtin/game/deprecated.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,36 @@ function core.register_on_auth_fail(func)
end
end)
end

--
-- core.get_all_craft_recipes
--

local old_get_all_craft_recipes = core.get_all_craft_recipes
function core.get_all_craft_recipes(...)
core.log("deprecated", "core.get_all_craft_recipes " ..
"is deprecated, use core.registered_crafts instead.")
old_get_all_craft_recipes(...)
end

--
-- core.get_craft_recipe
--

local old_get_craft_recipe = core.get_craft_recipe
function core.get_craft_recipe(...)
core.log("deprecated", "core.get_craft_recipe " ..
"is deprecated, use core.registered_crafts instead.")
old_get_craft_recipe(...)
end

--
-- core.get_craft_result
--

local old_get_craft_result = core.get_craft_result
function core.get_craft_result(...)
core.log("deprecated", "core.get_craft_result " ..
"is deprecated, use core.registered_crafts instead.")
old_get_craft_result(...)
end

0 comments on commit 33367eb

Please sign in to comment.