mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix block.compose_state
This commit is contained in:
parent
8e269e3693
commit
c75f6e4e67
1 changed files with 1 additions and 1 deletions
|
|
@ -385,7 +385,7 @@ static int l_raycast(lua::State* L) {
|
|||
}
|
||||
|
||||
static int l_compose_state(lua::State* L) {
|
||||
if (lua::istable(L, 1) || lua::objlen(L, 1) < 3) {
|
||||
if (!lua::istable(L, 1) || lua::objlen(L, 1) < 3) {
|
||||
throw std::runtime_error("expected array of 3 integers");
|
||||
}
|
||||
blockstate state {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue