diff --git a/apps/openmw/mwlua/types/container.cpp b/apps/openmw/mwlua/types/container.cpp index 11a66da03c..55f3e4a10e 100644 --- a/apps/openmw/mwlua/types/container.cpp +++ b/apps/openmw/mwlua/types/container.cpp @@ -54,9 +54,9 @@ namespace MWLua record["mwscript"] = sol::readonly_property( [](const ESM::Container& rec) -> std::string { return rec.mScript.serializeText(); }); record["weight"] = sol::readonly_property([](const ESM::Container& rec) -> float { return rec.mWeight; }); - record["organic"] = sol::readonly_property( + record["isOrganic"] = sol::readonly_property( [](const ESM::Container& rec) -> bool { return rec.mFlags & ESM::Container::Organic; }); - record["respawns"] = sol::readonly_property( + record["isRespawning"] = sol::readonly_property( [](const ESM::Container& rec) -> bool { return rec.mFlags & ESM::Container::Respawn; }); } } diff --git a/files/lua_api/openmw/types.lua b/files/lua_api/openmw/types.lua index 69ec965955..1e0b486524 100644 --- a/files/lua_api/openmw/types.lua +++ b/files/lua_api/openmw/types.lua @@ -2109,8 +2109,8 @@ -- @field #string model VFS path to the model -- @field #string mwscript MWScript on this container (can be empty) -- @field #number weight capacity of this container --- @field #boolean organic Whether items can be placed in the container --- @field #boolean respawns Whether the container respawns its contents +-- @field #boolean isOrganic Whether items can be placed in the container +-- @field #boolean isRespawning Whether the container respawns its contents -------------------------------------------------------------------------------- -- @{#Door} functions