mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-30 23:33:02 +00:00
Place boats in the placer direction
This commit is contained in:
parent
294be0f302
commit
f0b732d7e0
1 changed files with 1 additions and 0 deletions
|
@ -302,6 +302,7 @@ for b=1, #boat_ids do
|
||||||
local boat = minetest.add_entity(pointed_thing.under, "mcl_boats:boat")
|
local boat = minetest.add_entity(pointed_thing.under, "mcl_boats:boat")
|
||||||
boat:get_luaentity()._itemstring = itemstring
|
boat:get_luaentity()._itemstring = itemstring
|
||||||
boat:set_properties({textures = { "mcl_boats_texture_"..images[b].."_boat.png" }})
|
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
|
if not minetest.settings:get_bool("creative_mode") then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue