Skip to content

Commit

Permalink
Add log for seeds on place
Browse files Browse the repository at this point in the history
  • Loading branch information
An0n3m0us committed Feb 10, 2020
1 parent db632b6 commit 232cc2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mods/farming/api.lua
Expand Up @@ -177,6 +177,8 @@ farming.place_seed = function(itemstack, placer, pointed_thing, plantname)
end

-- add the node and remove 1 item from the itemstack
minetest.log("action", player_name .. " places node " .. plantname .. " at " ..
minetest.pos_to_string(pt.above))
minetest.add_node(pt.above, {name = plantname, param2 = 1})
tick(pt.above)
if not (creative and creative.is_enabled_for
Expand Down

0 comments on commit 232cc2b

Please sign in to comment.