mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix
This commit is contained in:
parent
85f579a42b
commit
0af780c5e4
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ static bool setattr(lua_State* L, InventoryView* inventory, const std::string& a
|
|||
if (inventory == nullptr)
|
||||
return false;
|
||||
if (attr == "inventory") {
|
||||
auto inv = scripting::level->inventories->get(lua_tointeger(L, 1));
|
||||
auto inv = scripting::level->inventories->get(lua_tointeger(L, 4));
|
||||
if (inv == nullptr) {
|
||||
inventory->unbind();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue