Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ab9f9ce

Browse files
committedDec 4, 2020
Fix certain connected nodeboxes crashing when falling
fixes #10596
1 parent 3176dae commit ab9f9ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎builtin/game/falling.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ core.register_entity(":__builtin:falling_node", {
130130
-- Set collision box (certain nodeboxes only for now)
131131
local nb_types = {fixed=true, leveled=true, connected=true}
132132
if def.drawtype == "nodebox" and def.node_box and
133-
nb_types[def.node_box.type] then
133+
nb_types[def.node_box.type] and def.node_box.fixed then
134134
local box = table.copy(def.node_box.fixed)
135135
if type(box[1]) == "table" then
136136
box = #box == 1 and box[1] or nil -- We can only use a single box

0 commit comments

Comments
 (0)
Please sign in to comment.