Update 'Turtle/Wheat.lua'

This commit is contained in:
manuel 2023-01-08 14:17:24 +00:00
parent 1375929b44
commit 86d41a2364

View File

@ -12,6 +12,11 @@ end
function Wheat:isPlantable(slot, update) function Wheat:isPlantable(slot, update)
self:assertInvUpdate(update) self:assertInvUpdate(update)
if(type(self.inv[slot]) ~= "table") then
return false
end
if(type(self.inv[slot].tags) ~= "table") then
return false
end
return self.inv[slot].tags["forge:seeds"] == true
end end