From 42091db05e6a4e99d7898fbab225a28b0f1bd5e5 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Mon, 23 Sep 2019 17:02:19 -0400 Subject: [PATCH] treat cottages:table and prefab_redo:concrete_railing as vertical posts --- compat.lua | 22 ++++++++++++++++++++++ depends.txt | 1 + 2 files changed, 23 insertions(+) diff --git a/compat.lua b/compat.lua index 76405d3..2f87b47 100644 --- a/compat.lua +++ b/compat.lua @@ -13,6 +13,28 @@ for _, n in ipairs(default_fences) do }) end +if minetest.get_modpath("cottages") then + local cbox = table.copy(minetest.registered_items["cottages:table"].node_box) + minetest.override_item("cottages:table", { + check_for_pole = true, + selection_box = cbox + }) +end + +if minetest.get_modpath("prefab_redo") then + minetest.override_item("prefab_redo:concrete_railing", { + check_for_pole = true, + selection_box = { + type = "connected", + connect_right = { -0.125, -0.5, -0.125, 0.5, 0.375, 0.125 }, + connect_left = { -0.5, -0.5, -0.125, 0.125, 0.375, 0.125 }, + connect_back = { -0.125, -0.5, -0.125, 0.125, 0.375, 0.5 }, + connect_front = { -0.125, -0.5, -0.5, 0.125, 0.375, 0.125 }, + fixed = {} + } + }) +end + if minetest.get_modpath("streetspoles") then local htj_north = { diff --git a/depends.txt b/depends.txt index 7e47df4..768e402 100644 --- a/depends.txt +++ b/depends.txt @@ -3,3 +3,4 @@ intllib? screwdriver? streetspoles? streetlamps? +cottages?