fix crafting bug - missing ingredients

This commit is contained in:
kepler155c@gmail.com
2019-01-06 04:15:36 -05:00
parent 1164bec812
commit 6ac9816189
2 changed files with 28 additions and 29 deletions

View File

@@ -476,7 +476,7 @@ local function findDroppedSaplings()
local sensed = Util.reduce(raw, function(acc, b)
Point.rotate(b, state.home.heading)
b.x = Util.round(b.x) + turtle.point.x
b.y = Util.round(b.y) + turtle.point.y
b.y = math.floor(b.y) + turtle.point.y
b.z = Util.round(b.z) + turtle.point.z
if b.y == 0 and string.find(b.displayName, 'sapling', 1, true) then
b.sapling = true