From 458b769d47dca468e084bbce0d668793ee587796 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Thu, 11 Jan 2024 23:06:33 +0100 Subject: [PATCH] no fence post on raillike fences present --- snow_analyze_shapes.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snow_analyze_shapes.lua b/snow_analyze_shapes.lua index 3597b67..5522098 100644 --- a/snow_analyze_shapes.lua +++ b/snow_analyze_shapes.lua @@ -63,8 +63,11 @@ moresnow.identify_stairs_and_slabs = function() elseif(( v.drawtype and v.drawtype == 'fencelike' ) or ( v.groups and v.groups.fence and v.groups.fence > 0)) then + -- raillike fences; they have no post on which we may put snow + if(string.find(n, "rail")) then + moresnow.snow_cover[ id ] = moresnow.c_snow_top; -- new fences - if( not( v.on_rightclick)) then + elseif( not( v.on_rightclick)) then moresnow.snow_cover[ id ] = moresnow.c_snow_fence; -- gates; they only get snow at the bottom else