diff options
author | sfan5 <sfan5@live.de> | 2020-12-04 11:27:15 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-12-04 11:28:45 +0100 |
commit | ecd4f45318e7e510ebe4ebe8420ea739122d2edf (patch) | |
tree | bf053fbb17743097214abcc54bde9716d59abcfc /builtin/game/falling.lua | |
parent | 3176daee79a8e91bd16fc275704f49fe1648db32 (diff) | |
download | minetest-ecd4f45318e7e510ebe4ebe8420ea739122d2edf.tar.gz minetest-ecd4f45318e7e510ebe4ebe8420ea739122d2edf.tar.bz2 minetest-ecd4f45318e7e510ebe4ebe8420ea739122d2edf.zip |
Fix certain connected nodeboxes crashing when falling
fixes #10695
Diffstat (limited to 'builtin/game/falling.lua')
-rw-r--r-- | builtin/game/falling.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/falling.lua b/builtin/game/falling.lua index 8d044beaa..f489ea702 100644 --- a/builtin/game/falling.lua +++ b/builtin/game/falling.lua @@ -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 |