diff options
Diffstat (limited to 'src/script')
| -rw-r--r-- | src/script/common/c_content.cpp | 3 | ||||
| -rw-r--r-- | src/script/cpp_api/s_node.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index f15d41f96..da54edb96 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -673,7 +673,8 @@ void read_content_features(lua_State *L, ContentFeatures &f, int index) !(f.param_type_2 == CPT2_COLOR || f.param_type_2 == CPT2_COLORED_FACEDIR || f.param_type_2 == CPT2_COLORED_WALLMOUNTED || - f.param_type_2 == CPT2_COLORED_DEGROTATE)) + f.param_type_2 == CPT2_COLORED_DEGROTATE || + f.param_type_2 == CPT2_COLORED_4DIR)) warningstream << "Node " << f.name.c_str() << " has a palette, but not a suitable paramtype2." << std::endl; diff --git a/src/script/cpp_api/s_node.cpp b/src/script/cpp_api/s_node.cpp index 029cb6308..a9638e239 100644 --- a/src/script/cpp_api/s_node.cpp +++ b/src/script/cpp_api/s_node.cpp @@ -66,6 +66,8 @@ struct EnumString ScriptApiNode::es_ContentParamType2[] = {CPT2_COLORED_WALLMOUNTED, "colorwallmounted"}, {CPT2_GLASSLIKE_LIQUID_LEVEL, "glasslikeliquidlevel"}, {CPT2_COLORED_DEGROTATE, "colordegrotate"}, + {CPT2_4DIR, "4dir"}, + {CPT2_COLORED_4DIR, "color4dir"}, {0, NULL}, }; |
