diff options
author | Zughy <63455151+Zughy@users.noreply.github.com> | 2021-01-21 18:17:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 18:17:09 +0000 |
commit | 45ccfe26fb6e0a130e4925ec362cccb1f045a829 (patch) | |
tree | 050fd684fa96f8d613d1d469f2fc9bb3d94d13c6 /src/script/common | |
parent | ea5d6312c1ab6ff3e859fcd7a429a384f0f0ff91 (diff) | |
download | minetest-45ccfe26fb6e0a130e4925ec362cccb1f045a829.tar.gz minetest-45ccfe26fb6e0a130e4925ec362cccb1f045a829.tar.bz2 minetest-45ccfe26fb6e0a130e4925ec362cccb1f045a829.zip |
Removed some obsolete code (#10562)
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
Diffstat (limited to 'src/script/common')
-rw-r--r-- | src/script/common/c_content.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index e3cb9042e..4316f412d 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -83,9 +83,6 @@ void read_item_definition(lua_State* L, int index, getboolfield(L, index, "liquids_pointable", def.liquids_pointable); - warn_if_field_exists(L, index, "tool_digging_properties", - "Obsolete; use tool_capabilities"); - lua_getfield(L, index, "tool_capabilities"); if(lua_istable(L, -1)){ def.tool_capabilities = new ToolCapabilities( @@ -653,20 +650,6 @@ void read_content_features(lua_State *L, ContentFeatures &f, int index) warningstream << "Node " << f.name.c_str() << " has a palette, but not a suitable paramtype2." << std::endl; - // Warn about some obsolete fields - warn_if_field_exists(L, index, "wall_mounted", - "Obsolete; use paramtype2 = 'wallmounted'"); - warn_if_field_exists(L, index, "light_propagates", - "Obsolete; determined from paramtype"); - warn_if_field_exists(L, index, "dug_item", - "Obsolete; use 'drop' field"); - warn_if_field_exists(L, index, "extra_dug_item", - "Obsolete; use 'drop' field"); - warn_if_field_exists(L, index, "extra_dug_item_rarity", - "Obsolete; use 'drop' field"); - warn_if_field_exists(L, index, "metadata_name", - "Obsolete; use on_add and metadata callbacks"); - // True for all ground-like things like stone and mud, false for eg. trees getboolfield(L, index, "is_ground_content", f.is_ground_content); f.light_propagates = (f.param_type == CPT_LIGHT); |