@ -15,8 +15,9 @@ module DFHack
when :Item
k.item
when :Building
# hilight a constructed bed
# hilight a constructed bed/coffer
k.building.contained_items[0].item if k.building.contained_items.length == 1
mats = k.building.contained_items.find_all { |i| i.use_mode == 2 }
mats[0].item if mats.length == 1
end
when :BuildingItems
bld = world.selected_building