mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01: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)
|
if (inventory == nullptr)
|
||||||
return false;
|
return false;
|
||||||
if (attr == "inventory") {
|
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) {
|
if (inv == nullptr) {
|
||||||
inventory->unbind();
|
inventory->unbind();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue