From b98819516631cbdfc5c030d181e6b0135eee55a6 Mon Sep 17 00:00:00 2001 From: tchncs Date: Tue, 29 Dec 2015 20:16:15 +0100 Subject: [PATCH] re-add moretrees compatibility --- init.lua | 58 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/init.lua b/init.lua index ad57bf3..13a3c1e 100644 --- a/init.lua +++ b/init.lua @@ -654,35 +654,35 @@ columnia.register_column_ia("junglewood", "default:junglewood", "Junglewood Column Linkdown", default.node_sound_wood_defaults()) ---if core.get_modpath( 'moretrees' ) then --- local morewood = { --- { name='beech', description='Beech Tree' }, --- { name='apple_tree', description='Apple Tree' }, --- { name='oak', description='Oak Tree' }, --- { name='sequoia', description='Giant Sequoia' }, --- { name='birch', description='Birch Tree' }, --- { name='palm', description='Palm Tree', }, --- { name='spruce', description='Spruce Tree' }, --- { name='pine', description='Pine Tree' }, --- { name='willow', description='Willow Tree' }, --- { name='acacia', description='Acacia Tree' }, --- { name='rubber_tree', description='Rubber Tree' }, --- { name='fir', description='Douglas Fir' } --- } --- for _,t in pairs( morewood ) do --- print('register: '.. t.name) --- columnia.register_column_ia( t.name, 'moretrees:' .. t.name ..'_planks', --- {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, --- { 'moretrees_' .. t.name .. '_wood.png' }, --- t.description .. ' Column', --- t.description .. ' Column Top', --- t.description .. ' Column Bottom', --- t.description .. ' Column Crosslink', --- t.description .. ' Column Link', --- t.description .. ' Column Linkdown', --- default.node_sound_wood_defaults()) --- end ---end +if core.get_modpath( 'moretrees' ) then + local morewood = { + { name='beech', description='Beech Tree' }, + { name='apple_tree', description='Apple Tree' }, + { name='oak', description='Oak Tree' }, + { name='sequoia', description='Giant Sequoia' }, + { name='birch', description='Birch Tree' }, + { name='palm', description='Palm Tree', }, + { name='spruce', description='Spruce Tree' }, + { name='pine', description='Pine Tree' }, + { name='willow', description='Willow Tree' }, + { name='acacia', description='Acacia Tree' }, + { name='rubber_tree', description='Rubber Tree' }, + { name='fir', description='Douglas Fir' } + } + for _,t in pairs( morewood ) do + print('register: '.. t.name) + columnia.register_column_ia( t.name, 'moretrees:' .. t.name ..'_planks', + {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + { 'moretrees_' .. t.name .. '_wood.png' }, + t.description .. ' Column', + t.description .. ' Column Top', + t.description .. ' Column Bottom', + t.description .. ' Column Crosslink', + t.description .. ' Column Link', + t.description .. ' Column Linkdown', + default.node_sound_wood_defaults()) + end +end if core.get_modpath('moreblocks') then stairsplus:register_all(