]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix certain connected nodeboxes crashing when falling
authorsfan5 <sfan5@live.de>
Fri, 4 Dec 2020 10:27:15 +0000 (11:27 +0100)
committersfan5 <sfan5@live.de>
Fri, 4 Dec 2020 10:28:45 +0000 (11:28 +0100)
fixes #10695

builtin/game/falling.lua

index 8d044beaa1607387c3c6eb8e3fe6b0ee5dbd4b55..f489ea7026cc90e1468bbf7a556088566d026a34 100644 (file)
@@ -130,7 +130,7 @@ core.register_entity(":__builtin:falling_node", {
                -- Set collision box (certain nodeboxes only for now)
                local nb_types = {fixed=true, leveled=true, connected=true}
                if def.drawtype == "nodebox" and def.node_box and
-                       nb_types[def.node_box.type] then
+                       nb_types[def.node_box.type] and def.node_box.fixed then
                        local box = table.copy(def.node_box.fixed)
                        if type(box[1]) == "table" then
                                box = #box == 1 and box[1] or nil -- We can only use a single box