Deduplicate player action logging, silence fake player actions (#2941)
This commit is contained in:
parent
edd033b708
commit
0c2ee1e41d
10 changed files with 95 additions and 65 deletions
|
@ -572,8 +572,7 @@ function default.sapling_on_place(itemstack, placer, pointed_thing,
|
|||
return itemstack
|
||||
end
|
||||
|
||||
minetest.log("action", player_name .. " places node "
|
||||
.. sapling_name .. " at " .. minetest.pos_to_string(pos))
|
||||
default.log_player_action(placer, "places node", sapling_name, "at", pos)
|
||||
|
||||
local take_item = not minetest.is_creative_enabled(player_name)
|
||||
local newnode = {name = sapling_name}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue