diff options
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/misc_register.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin/misc_register.lua b/builtin/misc_register.lua index bb2c62ab8..aa062d731 100644 --- a/builtin/misc_register.lua +++ b/builtin/misc_register.lua @@ -106,6 +106,11 @@ function minetest.register_item(name, itemdef) -- Use the nodebox as selection box if it's not set manually if itemdef.drawtype == "nodebox" and not itemdef.selection_box then itemdef.selection_box = itemdef.node_box + elseif itemdef.drawtype == "fencelike" and not itemdef.selection_box then + itemdef.selection_box = { + type = "fixed", + fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8}, + } end setmetatable(itemdef, {__index = minetest.nodedef_default}) minetest.registered_nodes[itemdef.name] = itemdef |