mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-11-24 07:13:44 +01:00
Fixed groups and black sign drop item
This commit is contained in:
parent
926242a585
commit
63c1499500
@ -165,8 +165,14 @@ function signs.register_sign(mod, name, model)
|
||||
|
||||
-- Node fields override
|
||||
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
|
||||
end
|
||||
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_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}},
|
||||
groups={choppy=1,oddly_breakable_by_hand=1,not_in_creative_inventory=1},
|
||||
groups={not_in_creative_inventory=1},
|
||||
drop="signs:wooden_right",
|
||||
},
|
||||
},
|
||||
|
@ -80,8 +80,8 @@ local models = {
|
||||
description="Black direction sign",
|
||||
tiles={"signs_black_left.png"},
|
||||
inventory_image="signs_black_inventory.png",
|
||||
groups={choppy=1,oddly_breakable_by_hand=1,not_in_creative_inventory=1},
|
||||
drop="signs:black_right",
|
||||
groups={not_in_creative_inventory=1},
|
||||
drop="signs_road:black_right",
|
||||
on_place=signs.on_place_direction,
|
||||
on_rightclick=signs.on_right_click_direction,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user