From 9174ecafa8b38eebe54b9e41da1f469c11273d41 Mon Sep 17 00:00:00 2001 From: bas080 Date: Thu, 19 Feb 2015 22:36:50 +0100 Subject: [PATCH] Minor fixes - Duplicate variable instantiation removed - Define the biome variable and attach the biome argument to it - Placed comment in relevant location --- functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.lua b/functions.lua index 5ffb3c9..f7db03d 100644 --- a/functions.lua +++ b/functions.lua @@ -1,6 +1,5 @@ vines.register_vine = function( name, defs, biome ) - --different properties for bottom and side vines. - local selection_box + local biome = biome local groups = { vines=1, snappy=3, flammable=2 } local vine_name_end = 'vines:'..name..'_end' @@ -19,6 +18,7 @@ vines.register_vine = function( name, defs, biome ) local selection_box = { type = "wallmounted", } local drawtype = 'signlike' if ( not biome.spawn_on_side ) then + --different properties for bottom and side vines. selection_box = { type = "fixed", fixed = { -0.4, -1/2, -0.4, 0.4, 1/2, 0.4 }, } drawtype = 'plantlike' end