Place boats in the placer direction

This commit is contained in:
Wuzzy 2018-05-09 18:43:07 +02:00
parent 294be0f302
commit f0b732d7e0
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ for b=1, #boat_ids do
local boat = minetest.add_entity(pointed_thing.under, "mcl_boats:boat")
boat:get_luaentity()._itemstring = itemstring
boat:set_properties({textures = { "mcl_boats_texture_"..images[b].."_boat.png" }})
boat:set_yaw(placer:get_look_horizontal())
if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end