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

use message parts instead of concatenation

This commit is contained in:
nixnoxus
2022-04-23 10:53:41 +02:00
parent 3c30d1328f
commit 8c96dbe7fb
5 changed files with 8 additions and 10 deletions

View File

@ -2058,9 +2058,8 @@ local function coral_on_place(itemstack, placer, pointed_thing)
if minetest.is_protected(pos_under, player_name) or
minetest.is_protected(pos_above, player_name) then
default.log_player_action(placer,
"tried to place " .. itemstack:get_name()
.. " at protected position "
, pos_under)
"tried to place", itemstack:get_name(),
"at protected position", pos_under)
minetest.record_protection_violation(pos_under, player_name)
return itemstack
end