mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
block inventory auto-position
This commit is contained in:
parent
96032b60ea
commit
b06142abb9
4 changed files with 23 additions and 7 deletions
|
|
@ -433,9 +433,7 @@ int l_set_block_rotation(lua_State* L) {
|
|||
lua::luaint x = lua_tointeger(L, 1);
|
||||
lua::luaint y = lua_tointeger(L, 2);
|
||||
lua::luaint z = lua_tointeger(L, 3);
|
||||
|
||||
lua::luaint value = lua_tointeger(L, 4);
|
||||
|
||||
voxel* vox = scripting::level->chunks->get(x, y, z);
|
||||
if (vox == nullptr) {
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ int l_hud_open_block(lua_State* L) {
|
|||
x, y, z
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
scripting::hud->openInventory(
|
||||
glm::ivec3(x, y, z), layout, scripting::level->inventories->get(id)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue