Skip to content

Commit 604fe20

Browse files
paramatnerzhul
authored andcommittedSep 12, 2017
Item drop: Tune to land exactly 2 nodes away with level view (#6410)
1 parent 5e141ac commit 604fe20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎builtin/game/item.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ function core.item_drop(itemstack, dropper, pos)
426426
local item = itemstack:take_item(cnt)
427427
local obj = core.add_item(p, item)
428428
if obj then
429-
dir.x = dir.x * 2
430-
dir.y = dir.y * 2 + 2
431-
dir.z = dir.z * 2
429+
dir.x = dir.x * 2.9
430+
dir.y = dir.y * 2.9 + 2
431+
dir.z = dir.z * 2.9
432432
obj:set_velocity(dir)
433433
obj:get_luaentity().dropped_by = dropper:get_player_name()
434434
return itemstack

0 commit comments

Comments
 (0)
Please sign in to comment.