1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-07-03 23:20:22 +02:00

use default.log_player_action

This commit is contained in:
nixnoxus
2022-04-21 15:13:27 +02:00
parent 4e11628982
commit 86a4b7ccb7
4 changed files with 10 additions and 15 deletions

View File

@ -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, pos)
local take_item = not minetest.is_creative_enabled(player_name)
local newnode = {name = sapling_name}