From c75f6e4e67aeb0311ef4795d3dabfd472c1c6b9c Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 12 Aug 2024 01:55:39 +0300 Subject: [PATCH] fix block.compose_state --- src/logic/scripting/lua/libblock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic/scripting/lua/libblock.cpp b/src/logic/scripting/lua/libblock.cpp index af4cae48..145362b7 100644 --- a/src/logic/scripting/lua/libblock.cpp +++ b/src/logic/scripting/lua/libblock.cpp @@ -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 {};