Update 'crop-farm/farm.lua'
This commit is contained in:
parent
eac25f8ed7
commit
50ba179501
|
@ -3,6 +3,7 @@ local HEIGHT = 27
|
|||
local WIDTH = 6
|
||||
local GROWTH_MAX = 7
|
||||
local SEED_NAME = "actuallyadditions:item_rice_seed"
|
||||
local CROP_NAME = "actuallyadditions:block_rice"
|
||||
--
|
||||
|
||||
if WIDTH % 2 ~= 0 then
|
||||
|
@ -34,7 +35,7 @@ refuel()
|
|||
print("Failed to get block info: "..data)
|
||||
end
|
||||
|
||||
if success and data.metadata >= GROWTH_MAX then
|
||||
if success and data.metadata >= GROWTH_MAX and data.name == CROP_NAME then
|
||||
turtle.digDown()
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue