projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db632b6
)
Add log for seeds on place
author
An0n3m0us
<an0n3m0us@hotmail.com>
Mon, 10 Feb 2020 21:00:40 +0000
(21:00 +0000)
committer
GitHub
<noreply@github.com>
Mon, 10 Feb 2020 21:00:40 +0000
(22:00 +0100)
mods/farming/api.lua
patch
|
blob
|
history
diff --git
a/mods/farming/api.lua
b/mods/farming/api.lua
index 4a482fac602bbf85321ee8f522a3229b748b5377..91d557c7f64581fec18f152f5984babf7e645326 100644
(file)
--- a/
mods/farming/api.lua
+++ b/
mods/farming/api.lua
@@
-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