From 3772b1caf2d16b4ca7c35f3bbd1f862fdd3f5e39 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Wed, 22 Mar 2017 18:04:08 -0600 Subject: [PATCH] mushroom stems replace gill material --- features.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features.lua b/features.lua index 41f5319..c5ed43c 100644 --- a/features.lua +++ b/features.lua @@ -150,13 +150,13 @@ function subterrane:giant_shroom(vi, area, data, stem_material, cap_material, gi data[vi] = stem_material if cap_radius > 3 then local ai = area:index(x, y+j, z+1) - if data[ai] == c_air then data[ai] = stem_material end + if data[ai] == c_air or data[ai] == gill_material then data[ai] = stem_material end ai = area:index(x, y+j, z-1) - if data[ai] == c_air then data[ai] = stem_material end + if data[ai] == c_air or data[ai] == gill_material then data[ai] = stem_material end ai = area:index(x+1, y+j, z) - if data[ai] == c_air then data[ai] = stem_material end + if data[ai] == c_air or data[ai] == gill_material then data[ai] = stem_material end ai = area:index(x-1, y+j, z) - if data[ai] == c_air then data[ai] = stem_material end + if data[ai] == c_air or data[ai] == gill_material then data[ai] = stem_material end end end end \ No newline at end of file