Skip to content

Commit

Permalink
Fix certain connected nodeboxes crashing when falling
Browse files Browse the repository at this point in the history
fixes #10596
  • Loading branch information
sfan5 committed Dec 4, 2020
1 parent 3176dae commit ab9f9ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/game/falling.lua
Expand Up @@ -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
Expand Down

0 comments on commit ab9f9ce

Please sign in to comment.