De-hardcode

This commit is contained in:
Jean-Patrick Guerrero 2021-11-19 02:08:29 +01:00
parent b62687e84b
commit dc8efbd16c

View File

@ -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)