adjusted to changes in homedecor

This commit is contained in:
Sokomine 2024-01-12 01:29:54 +01:00
parent 232098d9e8
commit 4728562bd5
3 changed files with 4 additions and 3 deletions

View File

@ -4,4 +4,4 @@ release = 202411011800
title = More Snow
name = moresnow
depends = default
optional_depends = stairs, moreblocks, homedecor
optional_depends = stairs, moreblocks, homedecor_roofing, technic

View File

@ -15,7 +15,7 @@ moresnow.identify_special_slopes = function( new_name, homedecor_prefix, technic
return;
end
local homedecor_materials = {'terracotta','wood','asphalt'};
local homedecor_materials = {'terracotta','wood','asphalt','glass'};
local technic_materials = {'dirt','wood','stone','cobble','brick','sandstone','leaves',
'tree','steelblock','bronzeblock','stainless_steel','marble','granite'};

View File

@ -355,7 +355,8 @@ moresnow.register_shape = function( shape, new_name )
end
-- only add these if either technic (with its cnc machine) or homedecor (with shingles) are installed
if( minetest.get_modpath( 'homedecor' )
if( minetest.get_modpath( 'homedecor_roofing' )
or minetest.get_modpath( 'moreblocks')
or minetest.get_modpath( 'technic' )) then
moresnow.register_shape( 1, 'ramp_top' );
moresnow.register_shape( 2, 'ramp_outer_top');