diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2015-05-07 23:40:14 -0700 |
---|---|---|
committer | Auke Kok <auke-jan.h.kok@intel.com> | 2015-05-07 23:40:14 -0700 |
commit | 7ba94da27aedf69bb8301455af10f73d992a3f47 (patch) | |
tree | fffbc04b5c8535eafaec2c243453e73536572130 /tomato.lua | |
parent | bcf27ebd99a3826982fd40da2981f7f459ee5205 (diff) |
Abstract crops.register method a bit.
Diffstat (limited to 'tomato.lua')
-rw-r--r-- | tomato.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 }) |