Update 'crop-farm/farm.lua'

master
Jan 2021-07-28 11:52:42 +00:00
parent eac25f8ed7
commit 50ba179501
1 changed files with 2 additions and 1 deletions

View File

@ -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