]> git.lizzy.rs Git - signs_lib.git/commitdiff
treat cottages:table and prefab_redo:concrete_railing as vertical posts
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>
Mon, 23 Sep 2019 21:02:19 +0000 (17:02 -0400)
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>
Mon, 23 Sep 2019 21:02:19 +0000 (17:02 -0400)
compat.lua
depends.txt

index 76405d3e5b51ce9678855a3c540d88661a2c70b1..2f87b47d829ceec3a36241de6bd34a43e271bf5a 100644 (file)
@@ -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 = {
index 7e47df4a4ddd7170a2f76c70d85a39a24b08972d..768e4024c066d0d263c81bd8d252dd67d107abdf 100644 (file)
@@ -3,3 +3,4 @@ intllib?
 screwdriver?
 streetspoles?
 streetlamps?
+cottages?