Simplify drop list

This commit is contained in:
Auke Kok 2017-02-11 16:36:32 -08:00
parent eafdb2319f
commit 28f6183fcd

View File

@ -161,16 +161,7 @@ function frame.register(name)
sounds = default.node_sound_defaults(), sounds = default.node_sound_defaults(),
groups = {attached_node = 1, oddly_breakable_by_hand = 1, snappy = 3, not_in_creative_inventory = 1}, groups = {attached_node = 1, oddly_breakable_by_hand = 1, snappy = 3, not_in_creative_inventory = 1},
frame_contents = name, frame_contents = name,
drop = { drop = "frame:empty", -- FIXME item should be in there but this would allow free repair
max_items = 2,
items = {
{
items = {"frame:empty"}, -- FIXME
-- 'name' should be in there but this would allow free repair
rarity = 1,
},
},
},
on_punch = frame_on_punch, on_punch = frame_on_punch,
}) })
end end