diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-05-12 13:24:36 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-07-23 20:11:53 +0200 |
commit | b7767dd9aae27f0fe6b7ae3b99d0f51860979f82 (patch) | |
tree | 0eb7414f1004f9c4d5a77c94df65220325322b5e /src/script/common/c_content.cpp | |
parent | 2351c9561265d4136f78ce3dd73c0c77acfed711 (diff) | |
download | minetest-b7767dd9aae27f0fe6b7ae3b99d0f51860979f82.tar.xz |
Dual Wielding
Diffstat (limited to 'src/script/common/c_content.cpp')
-rw-r--r-- | src/script/common/c_content.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index 166980025..5c112d1d1 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -81,6 +81,16 @@ void read_item_definition(lua_State* L, int index, def.usable = lua_isfunction(L, -1); lua_pop(L, 1); + lua_pushstring(L, "on_place"); + lua_rawget(L, index); + def.has_on_place = lua_isfunction(L, -1); + lua_pop(L, 1); + + lua_pushstring(L, "on_secondary_use"); + lua_rawget(L, index); + def.has_on_secondary_use = lua_isfunction(L, -1); + lua_pop(L, 1); + getboolfield(L, index, "liquids_pointable", def.liquids_pointable); lua_getfield(L, index, "tool_capabilities"); |