Update 'Turtle/Wheat.lua'
This commit is contained in:
parent
1375929b44
commit
86d41a2364
@ -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
|
Loading…
x
Reference in New Issue
Block a user