Merge pull request #3 from wsor4035/samarth-ramesh-patch-1

adding logging for cars placed
master
wsor4035 2020-09-05 22:32:36 -04:00 committed by GitHub
commit 46050d951e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -763,7 +763,8 @@ for id, color in pairs (carlist) do
local ent
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)
ent = minetest.add_entity(pointed_thing.above, "cars:car_"..color)
minetest.log("action",placer_name.." places car")
end
ent:setyaw(placer:get_look_yaw() - math.pi/2)
itemstack:take_item()