forked from nalc/homedecor_modpack
use signs_lib's custom pole check callback feature
requires signs_lib from commit dcdee22 or later, if present
This commit is contained in:
parent
f6da0f7329
commit
c118b43711
@ -2,4 +2,4 @@ homedecor_common
|
|||||||
default
|
default
|
||||||
basic_materials
|
basic_materials
|
||||||
dye
|
dye
|
||||||
basic_signs?
|
signs_lib?
|
||||||
|
@ -264,7 +264,7 @@ homedecor.register("fence_wrought_iron_2_corner", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- insert the old wood signs-on-metal-fences into signs_lib's conversion LBM
|
-- insert the old wood signs-on-metal-fences into signs_lib's conversion LBM
|
||||||
if minetest.get_modpath("basic_signs") then
|
if minetest.get_modpath("signs_lib") then
|
||||||
table.insert(signs_lib.old_fenceposts_with_signs, "homedecor:fence_brass_with_sign")
|
table.insert(signs_lib.old_fenceposts_with_signs, "homedecor:fence_brass_with_sign")
|
||||||
signs_lib.old_fenceposts["homedecor:fence_brass_with_sign"] = "homedecor:fence_brass"
|
signs_lib.old_fenceposts["homedecor:fence_brass_with_sign"] = "homedecor:fence_brass"
|
||||||
signs_lib.old_fenceposts_replacement_signs["homedecor:fence_brass_with_sign"] = "default:sign_wall_wood_onpole"
|
signs_lib.old_fenceposts_replacement_signs["homedecor:fence_brass_with_sign"] = "default:sign_wall_wood_onpole"
|
||||||
@ -272,8 +272,6 @@ if minetest.get_modpath("basic_signs") then
|
|||||||
table.insert(signs_lib.old_fenceposts_with_signs, "homedecor:fence_wrought_iron_with_sign")
|
table.insert(signs_lib.old_fenceposts_with_signs, "homedecor:fence_wrought_iron_with_sign")
|
||||||
signs_lib.old_fenceposts["homedecor:fence_wrought_iron_with_sign"] = "homedecor:fence_wrought_iron"
|
signs_lib.old_fenceposts["homedecor:fence_wrought_iron_with_sign"] = "homedecor:fence_wrought_iron"
|
||||||
signs_lib.old_fenceposts_replacement_signs["homedecor:fence_wrought_iron_with_sign"] = "default:sign_wall_wood_onpole"
|
signs_lib.old_fenceposts_replacement_signs["homedecor:fence_wrought_iron_with_sign"] = "default:sign_wall_wood_onpole"
|
||||||
|
|
||||||
signs_lib.allowed_poles["homedecor:pole_brass"] = true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- crafting
|
-- crafting
|
||||||
|
@ -5,3 +5,4 @@ unifieddyes
|
|||||||
building_blocks?
|
building_blocks?
|
||||||
technic?
|
technic?
|
||||||
bucket?
|
bucket?
|
||||||
|
signs_lib?
|
||||||
|
@ -145,6 +145,7 @@ homedecor.register("pole_brass", {
|
|||||||
},
|
},
|
||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
check_for_pole = true
|
||||||
})
|
})
|
||||||
|
|
||||||
homedecor.register("pole_wrought_iron", {
|
homedecor.register("pole_wrought_iron", {
|
||||||
|
Loading…
Reference in New Issue
Block a user