From 7ba94da27aedf69bb8301455af10f73d992a3f47 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 7 May 2015 23:40:14 -0700 Subject: Abstract crops.register method a bit. --- tomato.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tomato.lua') diff --git a/tomato.lua b/tomato.lua index 5234152..77ab866 100644 --- a/tomato.lua +++ b/tomato.lua @@ -182,9 +182,9 @@ local properties = { wither = 20, wither_damage = 10, } -table.insert(crops.plants, { name = "crops:tomato_plant_1", properties = properties }) -table.insert(crops.plants, { name = "crops:tomato_plant_2", properties = properties }) -table.insert(crops.plants, { name = "crops:tomato_plant_3", properties = properties }) -table.insert(crops.plants, { name = "crops:tomato_plant_4", properties = properties }) -table.insert(crops.plants, { name = "crops:tomato_plant_5", properties = properties }) +crops.register({ name = "crops:tomato_plant_1", properties = properties }) +crops.register({ name = "crops:tomato_plant_2", properties = properties }) +crops.register({ name = "crops:tomato_plant_3", properties = properties }) +crops.register({ name = "crops:tomato_plant_4", properties = properties }) +crops.register({ name = "crops:tomato_plant_5", properties = properties }) -- cgit v1.2.3