using minetest.log instead of a plain print

master^2
samarth-ramesh 2020-09-05 00:27:44 +05:30 committed by GitHub
parent ebceb506e0
commit 3cc7a3a4f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -764,7 +764,7 @@ for id, color in pairs (carlist) do
if minetest.get_item_group(minetest.get_node(pointed_thing.under).name, "liquid") == 0 then
pointed_thing.above.y = pointed_thing.above.y - 0.5
ent = minetest.add_entity(pointed_thing.above, "cars:car_"..color)
print(placer_name.." places car")
minetest.log("action",placer_name.." places car")
end
ent:setyaw(placer:get_look_yaw() - math.pi/2)
itemstack:take_item()