consolidate text pos and nodebox def tables

each sign type has a separate table which now defines the nodebox
model and position of the text on that model, instead of separate
sets of tables for each.
This commit is contained in:
Vanessa Ezekowitz
2014-08-03 19:53:52 -04:00
parent c5ce3bc53d
commit 37ed09edae
2 changed files with 62 additions and 58 deletions

View File

@ -50,7 +50,7 @@ minetest.register_node("homedecor:fence_brass_with_sign", {
wield_image = "homedecor_sign_brass_post.png",
paramtype = "light",
paramtype2 = "facedir",
node_box = signs_lib.sign_post_model,
node_box = signs_lib.sign_post_model.nodebox,
groups = {snappy=3,not_in_creative_inventory=1},
sounds = default.node_sound_wood_defaults(),
walkable = true,
@ -78,7 +78,7 @@ minetest.register_node("homedecor:fence_wrought_iron_with_sign", {
wield_image = "homedecor_sign_wrought_iron_post.png",
paramtype = "light",
paramtype2 = "facedir",
node_box = signs_lib.sign_post_model,
node_box = signs_lib.sign_post_model.nodebox,
groups = {snappy=3,not_in_creative_inventory=1},
sounds = default.node_sound_wood_defaults(),
walkable = true,