don't try to use snow on worlds where none exists
This commit is contained in:
parent
86699c95e1
commit
d886af6450
@ -794,7 +794,8 @@ mg_villages.place_villages_via_voxelmanip = function( villages, minp, maxp, vm,
|
||||
if( not( village.is_single_house )) then
|
||||
-- only add artificial snow if the village has at least a size of 15 (else it might look too artificial)
|
||||
if( not( village.artificial_snow ) and village.vs > 15) then
|
||||
if( mg_villages.artificial_snow_probability and math.random( 1, mg_villages.artificial_snow_probability )==1) then
|
||||
if( mg_villages.artificial_snow_probability and math.random( 1, mg_villages.artificial_snow_probability )==1
|
||||
and minetest.registered_nodes('default:snow')) then
|
||||
village.artificial_snow = 1;
|
||||
else
|
||||
village.artificial_snow = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user