summaryrefslogtreecommitdiff
path: root/corn.lua
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2015-05-07 23:40:14 -0700
committerAuke Kok <auke-jan.h.kok@intel.com>2015-05-07 23:40:14 -0700
commit7ba94da27aedf69bb8301455af10f73d992a3f47 (patch)
treefffbc04b5c8535eafaec2c243453e73536572130 /corn.lua
parentbcf27ebd99a3826982fd40da2981f7f459ee5205 (diff)
Abstract crops.register method a bit.
Diffstat (limited to 'corn.lua')
-rw-r--r--corn.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/corn.lua b/corn.lua
index 1ea5a10..253120b 100644
--- a/corn.lua
+++ b/corn.lua
@@ -336,8 +336,8 @@ local properties = {
doublesize = true,
}
-table.insert(crops.plants, { name = "crops:corn_base_seed", properties = properties })
-table.insert(crops.plants, { name = "crops:corn_base_1", properties = properties })
-table.insert(crops.plants, { name = "crops:corn_base_2", properties = properties })
-table.insert(crops.plants, { name = "crops:corn_base_3", properties = properties })
+crops.register({ name = "crops:corn_base_seed", properties = properties })
+crops.register({ name = "crops:corn_base_1", properties = properties })
+crops.register({ name = "crops:corn_base_2", properties = properties })
+crops.register({ name = "crops:corn_base_3", properties = properties })