Add log for seeds on place
authorAn0n3m0us <an0n3m0us@hotmail.com>
Mon, 10 Feb 2020 21:00:40 +0000 (21:00 +0000)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 21:00:40 +0000 (22:00 +0100)
mods/farming/api.lua

index 4a482fac602bbf85321ee8f522a3229b748b5377..91d557c7f64581fec18f152f5984babf7e645326 100644 (file)
@@ -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