Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Oct 10, 2021
1 parent 6743a47 commit a17842b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mods/fl_agriculture/crops/carrot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ minetest.register_craftitem("fl_agriculture:carrot", {
if not minetest.registered_nodes[anode.name] then return end
if minetest.get_item_group(node.name, "plantable") ~= 1 then return end
if minetest.registered_nodes[anode.name].drawtype ~= "airlike" then return end
minetest.place_node({x=pos.x, y=pos.y+1,z=pos.z}, {name = "fl_agriculture:carrot_1"})
minetest.set_node({x=pos.x, y=pos.y+1,z=pos.z}, {name = "fl_agriculture:carrot_1", param2 = 3})
itemstack:take_item()
return itemstack
end,
Expand Down
2 changes: 1 addition & 1 deletion mods/fl_agriculture/crops/potato.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ minetest.register_craftitem("fl_agriculture:potato", {
if not minetest.registered_nodes[anode.name] then return end
if minetest.get_item_group(node.name, "plantable") ~= 1 then return end
if minetest.registered_nodes[anode.name].drawtype ~= "airlike" then return end
minetest.place_node({x=pos.x, y=pos.y+1,z=pos.z}, {name = "fl_agriculture:potato_1"})
minetest.set_node({x=pos.x, y=pos.y+1,z=pos.z}, {name = "fl_agriculture:potato_1", param2 = 3})
itemstack:take_item()
return itemstack
end,
Expand Down

0 comments on commit a17842b

Please sign in to comment.