mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-27 03:10:39 +01:00
De-hardcode
This commit is contained in:
parent
b62687e84b
commit
dc8efbd16c
@ -318,7 +318,7 @@ end
|
|||||||
local function spawn_item(player, stack)
|
local function spawn_item(player, stack)
|
||||||
local dir = player:get_look_dir()
|
local dir = player:get_look_dir()
|
||||||
local ppos = player:get_pos()
|
local ppos = player:get_pos()
|
||||||
ppos.y = ppos.y + 1.625
|
ppos.y = ppos.y + player:get_properties().eye_height
|
||||||
local look_at = vector.add(ppos, vector.multiply(dir, 1))
|
local look_at = vector.add(ppos, vector.multiply(dir, 1))
|
||||||
|
|
||||||
core.add_item(look_at, stack)
|
core.add_item(look_at, stack)
|
||||||
|
Loading…
Reference in New Issue
Block a user