Place the bike only to the player's spot.
This commit is contained in:
parent
20b52d315d
commit
d44d85b06a
3
init.lua
3
init.lua
@ -515,7 +515,8 @@ minetest.register_craftitem("bike:bike", {
|
||||
return itemstack
|
||||
end
|
||||
|
||||
bike = minetest.add_entity(pointed_thing.above, "bike:bike")
|
||||
player_pos = placer:get_pos()
|
||||
bike = minetest.add_entity({x=player_pos.x, y=player_pos.y+0.5, z=player_pos.z}, "bike:bike")
|
||||
if bike then
|
||||
if placer then
|
||||
bike:set_yaw(placer:get_look_horizontal())
|
||||
|
Loading…
x
Reference in New Issue
Block a user