Skip to content

Commit

Permalink
Item drop: Tune to land exactly 2 nodes away with level view (#6410)
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat authored and nerzhul committed Sep 12, 2017
1 parent 5e141ac commit 604fe20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/game/item.lua
Expand Up @@ -426,9 +426,9 @@ function core.item_drop(itemstack, dropper, pos)
local item = itemstack:take_item(cnt)
local obj = core.add_item(p, item)
if obj then
dir.x = dir.x * 2
dir.y = dir.y * 2 + 2
dir.z = dir.z * 2
dir.x = dir.x * 2.9
dir.y = dir.y * 2.9 + 2
dir.z = dir.z * 2.9
obj:set_velocity(dir)
obj:get_luaentity().dropped_by = dropper:get_player_name()
return itemstack
Expand Down

0 comments on commit 604fe20

Please sign in to comment.