Fixed groups and black sign drop item

This commit is contained in:
pyrollo 2016-12-18 20:57:40 +01:00
parent 926242a585
commit 63c1499500
3 changed files with 13 additions and 7 deletions

@ -165,8 +165,14 @@ function signs.register_sign(mod, name, model)
-- Node fields override -- Node fields override
for key, value in pairs(model.node_fields) do for key, value in pairs(model.node_fields) do
if key == "groups" then
for key2, value2 in pairs(value) do
fields[key][key2] = value2
end
else
fields[key] = value fields[key] = value
end end
end
if not fields.wield_image then fields.wield_image = fields.inventory_image end if not fields.wield_image then fields.wield_image = fields.inventory_image end

@ -118,7 +118,7 @@ local models = {
wall_side = {-0.5, -7/32, -0.5, -7/16, 7/32, 7/16}, wall_side = {-0.5, -7/32, -0.5, -7/16, 7/32, 7/16},
wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}, wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5},
wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}}, wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}},
groups={choppy=1,oddly_breakable_by_hand=1,not_in_creative_inventory=1}, groups={not_in_creative_inventory=1},
drop="signs:wooden_right", drop="signs:wooden_right",
}, },
}, },

@ -80,8 +80,8 @@ local models = {
description="Black direction sign", description="Black direction sign",
tiles={"signs_black_left.png"}, tiles={"signs_black_left.png"},
inventory_image="signs_black_inventory.png", inventory_image="signs_black_inventory.png",
groups={choppy=1,oddly_breakable_by_hand=1,not_in_creative_inventory=1}, groups={not_in_creative_inventory=1},
drop="signs:black_right", drop="signs_road:black_right",
on_place=signs.on_place_direction, on_place=signs.on_place_direction,
on_rightclick=signs.on_right_click_direction, on_rightclick=signs.on_right_click_direction,
}, },