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. --- potato.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'potato.lua') diff --git a/potato.lua b/potato.lua index cb2108e..248957b 100644 --- a/potato.lua +++ b/potato.lua @@ -182,7 +182,7 @@ local properties = { wither_damage = 10, } -table.insert(crops.plants, { name = "crops:potato_plant_1", properties = properties }) -table.insert(crops.plants, { name = "crops:potato_plant_2", properties = properties }) -table.insert(crops.plants, { name = "crops:potato_plant_3", properties = properties }) -table.insert(crops.plants, { name = "crops:potato_plant_4", properties = properties }) +crops.register({ name = "crops:potato_plant_1", properties = properties }) +crops.register({ name = "crops:potato_plant_2", properties = properties }) +crops.register({ name = "crops:potato_plant_3", properties = properties }) +crops.register({ name = "crops:potato_plant_4", properties = properties }) -- cgit v1.2.3